Prev: 07090 Up: Map Next: 07103
07091: THE 'LINE-END' ROUTINE
Used by the routines at STMT_LOOP, STMT_NEXT and IF_CMD.
The routine at REM continues here.
If checking syntax a simple return is made but when 'running' the address held by NXTLIN has to be checked before it can be used.
LINE_END 07091 CALL SYNTAX_Z Return if syntax is being checked; otherwise fetch the address in NXTLIN.
07094 RET Z
07095 LD HL,(23637)
07098 LD A,192 Return also if the address is after the end of the program - the 'run' is finished.
07100 AND (HL)
07101 RET NZ
07102 XOR A Signal 'statement zero' before proceeding.
This routine continues into LINE_USE.
Prev: 07090 Up: Map Next: 07103