| Routines

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

Used by the routine at 24843. Returns with the base address of the graphic data in HL.
Input
A | Sprite UDG reference
H' | Character number (152-172)
27914 | LD L,A | L=sprite UDG reference
27915 | EXX |
27916 | LD A,H | A=character number (152-172)
27917 | CP 163 | Is it a little boy?
27919 | JR C,27927 | Jump if so
27921 | CP 167 | Is it a teacher?
27923 | LD A,201 |
27925 | JR C,27929 | Jump if so
27927 | LD A,185 |
27929 | EXX |
27930 | LD H,A | H=201 if the character is a teacher, 185 otherwise
27931 | RET |