Prev: AE7F Up: Map Next: AEFF
AEE8: Insert message text into the message graphic buffer
Used by the routine at B371. Generates the graphic data for the text of the message and inserts it into the buffer at 5B00. Returns with the message right-aligned in the buffer, and with C holding the number of empty pixel columns remaining on the left.
Input
C 0xFE
DE Message address
AEE8 LD A,(DE) A=ASCII code of a character in the message
AEE9 INC DE Point DE at the next character in the message
AEEA AND A Have we reached the end of the message?
AEEB RET Z Return if so
AEEC LD L,A B=width (in pixels) of the bitmap for this font character
AEED LD H,$D9
AEEF LD B,(HL)
AEF0 INC H Pick up a pixel column for the font character and slide it into the graphic buffer
AEF1 LD A,(HL)
AEF2 CALL $ADE8
AEF5 DEC C Decrease the pixel column count
AEF6 DJNZ $AEF0 Jump back until the entire font character has been done
AEF8 XOR A Insert a blank pixel column between characters
AEF9 DEC C
AEFA CALL $ADE8
AEFD JR $AEE8 Continue until the message is finished
Prev: AE7F Up: Map Next: AEFF