public bool SetGlobalValue(ushort var, short value) { if (var > 32) throw new Exception("Global Access out of bounds!"); GlobalState[var] = value; return true; }