Prev: 9637 Up: Map Next: 9691
9680: Print a message
Used by the routines at 86C3, 87CA, 8912, 89AD and 8C4A.
Input
IX Address of the message
C Length of the message
DE Display file address
9680 LD A,(IX+$00) Collect a character from the message
9683 CALL $9691 Print it
9686 INC IX Point IX at the next character in the message
9688 INC E Point DE at the next character cell (subtracting 8 from D compensates for the operations performed by the routine at 9691)
9689 LD A,D
968A SUB $08
968C LD D,A
968D DEC C Have we printed the entire message yet?
968E JR NZ,$9680 If not, jump back to print the next character
9690 RET
Prev: 9637 Up: Map Next: 9691