Prev: 32374 Up: Map Next: 32412
32398: Find character
Given a character code in A, this finds the location of that char's bytes in the font pointed to by 23606.
The code multiplies A by 8 and adds (23606)
Used by the routine at print_string_yxt_at_hl.
Input
A Char code ('A'=65, etc);
Output
HL Address of top scan of data
find_char 32398 PUSH BC
32399 LD L,A A into HL
32400 LD H,0
32402 ADD HL,HL x2
32403 ADD HL,HL x4
32404 ADD HL,HL x8
32405 LD BC,(_CURRENT_FONT) Add on start of font address
32409 ADD HL,BC
32410 POP BC
32411 RET Result in HL
Prev: 32374 Up: Map Next: 32412