Prev: 70fb Up: Map Next: 7124
7115: Display an ASCII character from the Font.
An ASCII 8x8 tile graphic is fetched from the font data and drawn to the screen. As HL is multiplied by 3 a 256 bytes offset must first be subtracted.
Input
A Character (Z80 ASCII) used to fetch the character from the font.
HL Screen address where character should be drawn.
Output
HL Location for the next location character.
7115 push bc
7116 push de
7117 push hl
7118 ld l,a L=ASCII value
7119 ld h,$00
711b add hl,hl Calculate correct offset for ASCII character
711c add hl,hl
711d add hl,hl
711e ld de,$3a00
7121 add hl,de HL += base address
7122 ex de,hl Store the character address in DE
7123 pop hl Restore HL
Prev: 70fb Up: Map Next: 7124