| Routines

6D0A: Get the base address of the graphic data for a sprite tile

Used by the routine at 610B. Returns with the base address of the graphic data in HL.
Input
A | Sprite UDG reference
H' | Character number (0x98-0xAC)
6D0A | LD L,A | L=sprite UDG reference
6D0B | EXX |
6D0C | LD A,H | A=character number (0x98-0xAC)
6D0D | CP $A3 | Is it a little boy?
6D0F | JR C,$6D17 | Jump if so
6D11 | CP $A7 | Is it a teacher?
6D13 | LD A,$C9 |
6D15 | JR C,$6D19 | Jump if so
6D17 | LD A,$B9 |
6D19 | EXX |
6D1A | LD H,A | H=0xC9 if the character is a teacher, 0xB9 otherwise
6D1B | RET |