Prev: BD6A Up: Map Next: BD99
BD82: Print Text
Used by the routine at PrintTextList.
Prints a string using the ROM character set. The colour of the text is taken from the variable that holds the attribute.
Before After
print-text-before print-text-after
Input
DE Address of the string, which ends with a character that has bit 7 set
HL Pixel position of the start of the text (L is x and H is y)
PrintText BD82 PUSH HL Use the ROM character set.
BD83 LD HL,($5C36)
BD86 LD ($9618),HL
BD89 POP HL
PrintText_Position BD8A PUSH HL Find the address of the display file using ScreenAddress.
BD8B CALL ScreenAddress
BD8E LD A,($9628) Fetch the attribute and keep it in A'.
BD91 EX AF,AF'
BD92 EXX Switch to the alternate registers and find the address of the attributes using AttributeAddress.
BD93 POP HL
BD94 CALL AttributeAddress
BD97 JR PrintStringColour_Loop Jump to print the text.
Prev: BD6A Up: Map Next: BD99