Prev: B587 Up: Map Next: B676
B66C: Print Characters
Used by the routines at B55D and B676.
Input
HL Address of text
B Number of characters to print
PrintCharacters B66C LD A,(HL) Load the character from *HL into A.
B66D PUSH HL Stash the string pointer and character counter on the stack.
B66E PUSH BC
B66F RST $10 Print the character to the screen.
B670 POP BC Restore the character counter and string pointer from the stack.
B671 POP HL
B672 INC HL Increment the string pointer by one to point to the next character.
B673 DJNZ PrintCharacters Decrease the character counter by one and loop back to PrintCharacters until all characters have been printed.
B675 RET Return.
Prev: B587 Up: Map Next: B676