Prev: D655 Up: Map Next: D675
D669: Convert a sprite ID to its graphic address
Used by the routine at E544.
Input
A The sprite ID
DE On exit, holds a pointer to the graphic
D669 ADD A,A Double the ID to get an appropriate word offset.
D66A LD E,A Put this in DE.
D66B LD D,$00
D66D LD HL,$AE60 Add the base offset for the sprite buffer at AE60.
D670 ADD HL,DE
D671 LD E,(HL) Put the found address in DE.
D672 INC HL
D673 LD D,(HL)
D674 RET Return.
Prev: D655 Up: Map Next: D675