setAttr method

void setAttr()

Implementation

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

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

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

  obj.setFlagBit(operands[1].value!);
  //Debugger.verbose('    (set Attribute) >>> object: ${obj.shortName}(${obj.id}) ${operands[1].value}: ${obj.isFlagBitSet(operands[1].value)}');
}