Prev: 09A1 Up: Map Next: 0A11
09F4: THE 'PRINT-OUT' ROUTINES
Used by the routines at ED_COPY and OUT_FLASH.
The address of this routine is found in the initial channel information table.
All of the printing to the main part of the screen, the lower part of the screen and the printer is handled by this set of routines.
This routine is entered with the A register holding the code for a control character, a printable character or a token.
Input
A Character code
PRINT_OUT 09F4 CALL PO_FETCH The current print position.
09F7 CP " " If the code represents a printable character then jump.
09F9 JP NC,PO_ABLE
09FC CP $06 Print a question mark for codes in the range +00 to +05.
09FE JR C,PO_QUEST
0A00 CP $18 And also for codes +18 to +1F.
0A02 JR NC,PO_QUEST
0A04 LD HL,$0A0B Base of the control character table.
0A07 LD E,A Move the code to the DE register pair.
0A08 LD D,$00
0A0A ADD HL,DE Index into the table and fetch the offset.
0A0B LD E,(HL)
0A0C ADD HL,DE Add the offset and make an indirect jump to the appropriate subroutine.
0A0D PUSH HL
0A0E JP PO_FETCH
Prev: 09A1 Up: Map Next: 0A11