load method

void load()

Implementation

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

  final operand = visitOperandsShortForm();

  final resultTo = readb();

  if (operand.rawValue == Engine.stackPointer) {
    operand.rawValue = readVariable(Engine.stackPointer);
  }

  final v = readVariable(operand.rawValue!);

  writeVariable(resultTo, v);
}