getProp method

void getProp()

Implementation

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

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

  final resultTo = readb();

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

  final value = obj.getPropertyValue(operands[1].value!);

  //Debugger.verbose('    (${pc.toRadixString(16)}) [${obj.id}] getPropValue(${operands[1].value}): ${value.toRadixString(16)}');

  writeVariable(resultTo, value);
}