Prev: 0ECD Up: Map Next: 0EF4
0EDF: THE 'CLEAR PRINTER BUFFER' SUBROUTINE
Used by the routines at COPY_LINE and NEW.
The printer buffer is cleared by calling this subroutine.
CLEAR_PRB 0EDF LD HL,$5B00 The base address of the printer buffer.
0EE2 LD (IY+$46),L Reset the printer 'column' at PR-CC.
0EE5 XOR A Clear the A register.
0EE6 LD B,A Also clear the B register (in effect B holds 256).
PRB_BYTES 0EE7 LD (HL),A The 256 bytes of the printer buffer are all cleared in turn.
0EE8 INC HL
0EE9 DJNZ PRB_BYTES
0EEB RES 1,(IY+$30) Signal 'the buffer is empty' (reset bit 1 of FLAGS2).
0EEF LD C,$21 Set the printer position and return via CL_SET and PO_STORE.
0EF1 JP CL_SET
Prev: 0ECD Up: Map Next: 0EF4