Prev: BC66 Up: Map Next: BC8B
BC7A: 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 BC7A PUSH HL Stash the pixel position on the stack.
BC7B LD HL,$81D5 Point HL at 81D5.
BC7E LD ($A732),HL Set FontPointer.
BC81 POP BC Copy the pixel position to BC (using the stack).
BC82 PUSH BC
BC83 CALL CalculateBufferAddress Call CalculateBufferAddress.
BC86 LD L,C Copy it to HL.
BC87 LD H,B
BC88 LD A,(DE) Fetch the attribute of the text.
BC89 EX AF,AF' Keep the attribute in AF'.
BC8A INC DE Move on to the first character.
View the equivalent code in;
Prev: BC66 Up: Map Next: BC8B