push method

void push()

Implementation

void push() {
  //Debugger.verbose('${pcHex(-1)} [push]');
  final operand = visitOperandsVar(1, false);

  //Debugger.verbose('    Pushing 0x${operand[0].value.toRadixString(16)} to the stack.');

  stack.push(operand[0].value!);

//    if (operand[0].rawValue == 0){
//      //pushing SP into SP would be counterintuitive...
//      stack.push(0);
//    }else{
//      stack.push(readVariable(operand[0].value));
//    }
}