call_2s method

void call_2s()

Implementation

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

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

  var storeTo = readb();

  var returnAddr = programCounter;

  programCounter = unpack(operands[0].value!);

  visitRoutine([operands[1].value]);

  //push the result store address onto the call stack
  callStack.push(storeTo);

  //push the return address onto the call stack
  callStack.push(returnAddr);
}