Prev: 48570 Up: Map Next: 48709
48689: Print Text Single Colour
Used by the routine at DisplayTextList.
Prints a line of text in the colour held in TextAttribute, using the font at Font. The last character of the text has bit 7 set.
Input
DE Address of the text
HL Pixel position
Point at the standard font and keep TextAttribute.
PrintTextSingleColour 48689 PUSH HL Stash the pixel position on the stack.
48690 LD HL,24840 Point HL at Font.
48693 LD (23495),HL Set FontPointer.
48696 POP BC Copy the pixel position to BC (using the stack).
48697 PUSH BC
48698 CALL CalculateBufferAddress Call CalculateBufferAddress.
48701 LD L,C Copy it to HL.
48702 LD H,B
48703 LD A,(23478) Fetch TextAttribute.
48706 EX AF,AF' Keep the colour in AF'.
48707 JR PrintText_Setup Jump to PrintText_Setup.
View the equivalent code in;
Prev: 48570 Up: Map Next: 48709