Prev: CB93 Up: Map Next: CD32
CD26: Convert a sprite ID to a graphic offset
Used by the routine at CB93.
Input
A The ID to look up
DE On exit, holds the appropriate offset
CD26 PUSH HL Remember HL.
CD27 LD L,A Put the ID in HL.
CD28 LD H,$00
CD2A ADD HL,HL Multiply by 32.
CD2B ADD HL,HL
CD2C ADD HL,HL
CD2D ADD HL,HL
CD2E ADD HL,HL
CD2F EX DE,HL Store it in DE.
CD30 POP HL Restore HL and return.
CD31 RET
Prev: CB93 Up: Map Next: CD32