C# Class kOS.Safe.Compilation.OpcodeStoreGlobal

Consumes the topmost 2 values of the stack, storing the topmost stack value into a variable described by the next value down the stack.

The variable will always be stored at a global scope, overwriting whatever else was there if the variable already existed.

It will ignore local scoping and never store the value in a local variable

It's impossible to make a variable that hasn't been given an initial value. Its the act of storing a value into the variable that causues it to exist. This is deliberate design.
Inheritance: Opcode
Mostrar archivo Open project: KSP-KOS/KOS

Public Methods

Method Description
Execute ( ICpu cpu ) : void

Method Details

Execute() public method

public Execute ( ICpu cpu ) : void
cpu ICpu
return void