Prev: 660D Up: Map Next: 662B
6621: Print String
Used by the routine at Print_HUD_Header.
Input
HL Pointer to text
BC The length of the text to print
PrintString 6621 LD A,(HL) A=*HL.
6622 PUSH HL Stash HL and BC on the stack temporarily.
6623 PUSH BC
6624 RST $10 Print to the screen using RST 10.
6625 POP BC Restore BC and HL from the stack.
6626 POP HL
6627 INC HL Increment HL by one.
6628 DJNZ PrintString Decrease the string length counter by one and loop back to PrintString until the whole string has been printed to the screen.
662A RET Return.
Prev: 660D Up: Map Next: 662B