writeGlobal method

void writeGlobal(
  1. int which,
  2. int value
)

Implementation

void writeGlobal(int which, int value){
 // if (which == 0) return Z.stack.push(value);

  if (which < 0x10 || which > 0xff) {
    throw GameException('Global lookup register out of range.');
  }

    storew(globalVarsAddress + ((which - 0x10) * 2), value);
}