| Routines

1FDF: THE 'PRINT CONTROLLING' SUBROUTINE

This subroutine is called by the LPRINT and INPUT command routines.
PRINT_2 | 1FDF | RST $18 | Get the first character.
| 1FE0 | CALL PR_END_Z | Jump forward if already at the end of the item list.
| 1FE3 | JR Z,PRINT_4
Now enter a loop to deal with the 'position controllers' and the print items.
PRINT_3 | 1FE5 | CALL PR_POSN_1 | Deal with any consecutive position controllers.
| 1FE8 | JR Z,PRINT_3
| 1FEA | CALL PR_ITEM_1 | Deal with a single print item.
| 1FED | CALL PR_POSN_1 | Check for further position controllers and print items until there are none left.
| 1FF0 | JR Z,PRINT_3
PRINT_4 | 1FF2 | CP ")" | Return now if the present character is a ')'; otherwise consider performing a 'carriage return'.
| 1FF4 | RET Z
This routine continues into PRINT_CR.