Prev: 24790 Up: Map Next: 24822
24808: Fetch UDG Address
Used by the routines at 24852 and 29597.
Input
A UDG number
Output
DE The address of the UDG
Address_UDG 24808 PUSH HL Stash HL on the stack.
24809 LD L,A Point DE at the graphic data for the corresponding tile (at 25984+8*A).
24810 LD H,0
24812 ADD HL,HL
24813 ADD HL,HL
24814 ADD HL,HL
24815 LD DE,25984
24818 ADD HL,DE
24819 EX DE,HL
24820 POP HL Retrieve HL from the stack.
24821 RET Return.
Prev: 24790 Up: Map Next: 24822