getNextProp method

void getNextProp()

Implementation

void getNextProp() {
  //Debugger.verbose('${pcHex(-1)} [get_next_prop]');

  final operands = mem.loadb(programCounter- 1) < 193
      ? visitOperandsLongForm()
      : visitOperandsVar(2, false);

  final resultTo = readb();

  final obj = GameObject(operands[0].value);

  final nextProp = obj.getNextProperty(operands[1].value);
  //Debugger.verbose('    (${pcHex()}) [${obj.id}] prop: ${operands[1].value} next prop:  ${nextProp}');
  writeVariable(resultTo, nextProp);
}