| Routines

08137: THE 'LPRINT and PRINT' COMMAND ROUTINES

The address of this routine is found in the parameter table. The appropriate channel is opened as necessary and the items to be printed are considered in turn.
LPRINT | 08137 | LD A,3 | Prepare to open channel 'P'.
| 08139 | JR PRINT_1 | Jump forward.
The address of this entry point is found in the parameter table.
PRINT | 08141 | LD A,2 | Prepare to open channel 'S'.
PRINT_1 | 08143 | CALL SYNTAX_Z | Unless syntax is being checked open a channel.
| 08146 | CALL NZ,CHAN_OPEN
| 08149 | CALL TEMPS | Set the temporary colour system variables.
| 08152 | CALL PRINT_2 | Call the print controlling subroutine.
| 08155 | CALL CHECK_END | Move on to consider the next statement (via CHECK_END if checking syntax).
| 08158 | RET