| Routines

0802: THE 'LOAD A DATA BLOCK' SUBROUTINE

Used by the routines at LD_CONTRL and ME_CONTRL. The routine at VR_CONTRL continues here. This subroutine is common to all the tape loading routines. In the case of LOAD and VERIFY it acts as a full return from the cassette handling routines but in the case of MERGE the data block has yet to be merged.
Input
A | +FF
F | Carry flag set if loading, reset if verifying
DE | Block length
IX | Start address
LD_BLOCK | 0802 | CALL LD_BYTES | Load/verify a data block.
| 0805 | RET C | Return unless an error.
This entry point is used by the routine at VR_CONTRL. Report R - Tape loading error.
REPORT_R | 0806 | RST $08 | Call the error handling routine.
| 0807 | DEFB $1A