Prev: DCC1 Up: Map Next: DCF5
DCE8: Convert a food item ID to its graphic address
Used by the routines at DBB8 and DCC1.
Input
A ID of the food item
HL On return, holds the address for the graphic data
DCE8 ADD A,A Double the item ID to get a word offset.
DCE9 LD C,A Put this in BC.
DCEA LD B,$00
DCEC LD HL,$65DA Add the base address of the food table (65DA).
DCEF ADD HL,BC
DCF0 LD A,(HL) Put the data found in HL.
DCF1 INC HL
DCF2 LD H,(HL)
DCF3 LD L,A
DCF4 RET Return.
Prev: DCC1 Up: Map Next: DCF5