store method

void store()

Implementation

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

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

  assert(operands[0].rawValue! <= 0xff);

  if (operands[0].rawValue == Engine.stackPointer) {
    operands[0].rawValue = readVariable(Engine.stackPointer);
  }

  writeVariable(operands[0].rawValue!, operands[1].value);
}