Prev: 1EAC Up: Map Next: 1F05
1EED: THE 'GO SUB' COMMAND ROUTINE
The address of this routine is found in the parameter table.
The present value of PPC and the incremented value of SUBPPC are stored on the GO SUB stack.
GO_SUB 1EED POP DE Save the address - STMT_RET.
1EEE LD H,(IY+$0D) Fetch the statement number (SUBPPC) and increment it.
1EF1 INC H
1EF2 EX (SP),HL Exchange the 'error address' with the statement number.
1EF3 INC SP Reclaim the use of a location.
1EF4 LD BC,($5C45) Next save the present line number (PPC).
1EF8 PUSH BC
1EF9 PUSH HL Return the 'error address' to the machine stack and reset ERR-SP to point to it.
1EFA LD ($5C3D),SP
1EFE PUSH DE Return the address STMT_RET.
1EFF CALL GO_TO Now set NEWPPC and NSPPC to the required values.
1F02 LD BC,$0014 But before making the jump make a test for room.
This routine continues into TEST_ROOM.
Prev: 1EAC Up: Map Next: 1F05