Prev: 03789 Up: Map Next: 03828
03807: 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 03807 LD HL,23296 The base address of the printer buffer.
03810 LD (IY+70),L Reset the printer 'column' at PR-CC.
03813 XOR A Clear the A register.
03814 LD B,A Also clear the B register (in effect B holds 256).
PRB_BYTES 03815 LD (HL),A The 256 bytes of the printer buffer are all cleared in turn.
03816 INC HL
03817 DJNZ PRB_BYTES
03819 RES 1,(IY+48) Signal 'the buffer is empty' (reset bit 1 of FLAGS2).
03823 LD C,33 Set the printer position and return via CL_SET and PO_STORE.
03825 JP CL_SET
Prev: 03789 Up: Map Next: 03828