Prev: 1BB2 Up: Map Next: 1BBF
1BB3: 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.
Input
Output
LINE_END 1BB3 CALL SYNTAX_Z Return if syntax is being checked; otherwise fetch the address in NXTLIN.
1BB6 RET Z
1BB7 LD HL,($5C55)
1BBA LD A,$C0 Return also if the address is after the end of the program - the 'run' is finished.
1BBC AND (HL)
1BBD RET NZ
1BBE XOR A Signal 'statement zero' before proceeding.
This routine continues into LINE_USE.
Prev: 1BB2 Up: Map Next: 1BBF