Prev: 48490 Up: Map Next: 48537
48514: 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 48514 PUSH HL Use the ROM character set.
48515 LD HL,(23606)
48518 LD (38424),HL
48521 POP HL
PrintText_Position 48522 PUSH HL Find the address of the display file using ScreenAddress.
48523 CALL ScreenAddress
48526 LD A,(38440) Fetch the attribute and keep it in A'.
48529 EX AF,AF'
48530 EXX Switch to the alternate registers and find the address of the attributes using AttributeAddress.
48531 POP HL
48532 CALL AttributeAddress
48535 JR PrintStringColour_Loop Jump to print the text.
Prev: 48490 Up: Map Next: 48537