pushStack(address) {
    if (this.sp === this.STACK_SIZE) {
      throw new Error('Stack overflow');
    }

    const offset = this.STACK_OFFSET + this.sp;
    this.memory.setUint16(offset, address);
    this.emit('memory', offset, 2);

    this.setSP(this.sp + 2);
  }
/**
   * Push the instruction address to stack.
   *
   * @param {number} address instruction address.
   */
Push the instruction address to stack.
@param {number} address instruction address.
Push the instruction address to stack . @param { number } address instruction address .
pushStack(address) {
    if (this.sp === this.STACK_SIZE) {
      throw new Error('Stack overflow');
    }
    const offset = this.STACK_OFFSET + this.sp;
    this.memory.setUint16(offset, address);
    this.emit('memory', offset, 2);
    this.setSP(this.sp + 2);
  }
pushStack ( address ) { if ( this . sp === this . STACK_SIZE ) { throw new Error ( 'Stack overflow' ) ; } const offset = this . STACK_OFFSET + this . sp ; this . memory . setUint16 ( offset , address ) ; this . emit ( 'memory' , offset , 2 ) ; this . setSP ( this . sp + 2 ) ; }
Push the instruction address to stack.
Push the instruction address to stack .