Prev: 48230 Up: Map Next: 48267
48250: Print Text Standard Font
Prints a string like PrintTextSingleColour does, but takes the colour from the first byte of the string. This is not used by the game.
Input
DE Address of the text
H Pixel y position
L Pixel x position
Point at the ASCII font and fetch the attribute from the text.
PrintTextStandardFont 48250 PUSH HL Stash the pixel position on the stack.
48251 LD HL,33237 Point HL at 33237.
48254 LD (42802),HL Set FontPointer.
48257 POP BC Copy the pixel position to BC (using the stack).
48258 PUSH BC
48259 CALL CalculateBufferAddress Call CalculateBufferAddress.
48262 LD L,C Copy it to HL.
48263 LD H,B
48264 LD A,(DE) Fetch the attribute of the text.
48265 EX AF,AF' Keep the attribute in AF'.
48266 INC DE Move on to the first character.
View the equivalent code in;
Prev: 48230 Up: Map Next: 48267