Micropower |
Volume 2 · Number 3 · July 1982 |
| Page 22 of 37 |
|---|
This subroutine call outputs a single space by loading the accumulator with £20 and calling the ROUT restart, £F7. The section of code which does this is the end of routine TBCD3 (DF 66), which outputs a space after the contents of HL have been printed in hexadecimal.
A carriage return/
This subroutine prints the word ‘Error’. followed by a Carriage return to position the cursor at the start of the next line. This call is very useful for reporting input errors in machine code programs. Just print the type of error and call DF 6B; this saves six bytes (‘Error’ + CR/LF) by the use of two.
The main use of this subroutine call is to print out
the header on each block of data for tape input/
This routine sends up to 256 bytes of data to the serial output. On entry HL must contain the address of the start of the data to be sent, and the number of bytes must be in B. The C register is first set to zero, then each successive byte is added into C and sent to the serial port. using SCAL SRLX, DF 6F. On exit from the routine B is zero,
| Page 22 of 37 |
|---|