Prev: 60D6 Up: Map Next: 60F6
60E8: Fetch UDG Address
Used by the routines at 6114 and 739D.
Input
A UDG number
Output
DE The address of the UDG
Address_UDG 60E8 PUSH HL Stash HL on the stack.
60E9 LD L,A Point DE at the graphic data for the corresponding tile (at 6580+08*A).
60EA LD H,$00
60EC ADD HL,HL
60ED ADD HL,HL
60EE ADD HL,HL
60EF LD DE,$6580
60F2 ADD HL,DE
60F3 EX DE,HL
60F4 POP HL Retrieve HL from the stack.
60F5 RET Return.
Prev: 60D6 Up: Map Next: 60F6