loadByte method

void loadByte()

Implementation

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

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

  final resultTo = readb();

  final addr = operands[0].value! + MathHelper.toSigned(operands[1].value!);

  //Debugger.todo();
  writeVariable(resultTo, mem.loadb(addr));

  //Debugger.verbose('    loaded 0x${peekVariable(resultTo).toRadixString(16)} from 0x${addr.toRadixString(16)} into 0x${resultTo.toRadixString(16)}');
}