loadWord method
void
loadWord()
Implementation
void loadWord() {
//Debugger.verbose('${pcHex(-1)} [loadw]');
final operands = mem.loadb(programCounter- 1) < 193
? visitOperandsLongForm()
: visitOperandsVar(2, false);
final resultTo = readb();
final addr = operands[0].value! + 2 * MathHelper.toSigned(operands[1].value!);
// assert(addr <= mem.highMemAddress);
writeVariable(resultTo, mem.loadw(addr));
//Debugger.verbose(' loaded 0x${peekVariable(resultTo).toRadixString(16)} from 0x${addr.toRadixString(16)} into 0x${resultTo.toRadixString(16)}');
}