| Routines

37562: Print a message

Used by the routines at 34252, 34436, 34574, 35140 and 36904.
Input
IX | Address of the message
C | Length of the message
DE | Display file address
37562 | LD A,(IX+0) | Collect a character from the message
37565 | CALL 37579 | Print it
37568 | INC IX | Point IX at the next character in the message
37570 | INC E | Point DE at the next character cell (subtracting 8 from D compensates for the operations performed by the routine at 37579)
37571 | LD A,D
37572 | SUB 8
37574 | LD D,A
37575 | DEC C | Have we printed the entire message yet?
37576 | JR NZ,37562 | If not, jump back to print the next character
37578 | RET |