storewv method

void storewv()

Implementation

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

  final operands = visitOperandsVar(3, false);

  //(ref http://www.gnelson.demon.co.uk/zspec/sect15.html#storew)
  final addr = operands[0].value! + 2 * MathHelper.toSigned(operands[1].value!);

  assert(addr <= mem.highMemAddress);

  mem.storew(addr, operands[2].value!);

  //Debugger.verbose('    stored 0x${operands[2].value.toRadixString(16)} at addr: 0x${addr.toRadixString(16)}');
}