| Routines

06935: THE 'MAIN PARSER' OF THE BASIC INTERPRETER

Used by the routine at MAIN_EXEC. The parsing routine of the BASIC interpreter is entered here when syntax is being checked, and at LINE_RUN when a BASIC program of one or more statements is to be executed. Each statement is considered in turn and the system variable CH-ADD is used to point to each code of the statement as it occurs in the program area or the editing area.
LINE_SCAN | 06935 | RES 7,(IY+1) | Signal 'syntax checking' (reset bit 7 of FLAGS).
| 06939 | CALL E_LINE_NO | CH-ADD is made to point to the first code after any line number.
| 06942 | XOR A | The system variable SUBPPC is initialised to 0 and ERR-NR to 255.
| 06943 | LD (23623),A
| 06946 | DEC A
| 06947 | LD (23610),A
| 06950 | JR STMT_L_1 | Jump forward to consider the first statement of the line.