Prev: D4CD Up: Map Next: D4EA
D4D7: Print Text
Used by the routines at GameMenu, DrawBounty and DrawTelegramFrame.
Prints a text from Font, one tile for each character. The text starts with an attribute and ends with 00.
print-text
Input
DE The address of the attribute and the text
HL The screen address
Fetch the attribute.
PrintText D4D7 LD A,(DE) Fetch the attribute, and keep it in the alternate accumulator.
D4D8 INC DE
D4D9 EX AF,AF'
Print the next character.
PrintText_Next D4DA LD A,(DE) Return if it is the terminator.
D4DB AND A
D4DC RET Z
D4DD INC DE Move on to the next character.
D4DE CALL ConvertCharacter Call ConvertCharacter.
D4E1 LD BC,$8EA8 Point BC at Font.
D4E4 CALL DrawTile Call DrawTile.
D4E7 INC L Move on to the next column.
D4E8 JR PrintText_Next Jump to PrintText_Next.
Prev: D4CD Up: Map Next: D4EA