public GetGlobalValue ( ushort var ) : short | ||
var | ushort | The index of the global value to get. WARNING: Throws exception if index is OOB. /// Must be in range of 0 - 31. |
리턴 | short |
public short GetGlobalValue(ushort var)
{
// should this be in VMContext?
if (var > 32) throw new Exception("Global Access out of bounds!");
return GlobalState[var];
}