| Routines

0ECD: THE 'COPY-BUFF' SUBROUTINE

Used by the routines at PO_ENTER, PO_ANY and MAIN_EXEC. This subroutine is called whenever the printer buffer is to have its contents passed to the printer.
COPY_BUFF | 0ECD | DI | Disable the maskable interrupt.
| 0ECE | LD HL,$5B00 | The base address of the printer buffer.
| 0ED1 | LD B,$08 | There are eight pixel lines.
COPY_3 | 0ED3 | PUSH BC | Save the line number.
| 0ED4 | CALL COPY_LINE | Print the line.
| 0ED7 | POP BC | Fetch the line number.
| 0ED8 | DJNZ COPY_3 | Jump back until 8 lines have been printed.
This entry point is used by the routine at COPY.
COPY_END | 0EDA | LD A,$04 | Stop the printer motor.
| 0EDC | OUT ($FB),A
| 0EDE | EI | Enable the maskable interrupt and continue into CLEAR_PRB.