Prev: AEAF Up: Map Next: AEDA
AED1: Item Locator
Input
A Item ID
Output
A Either a room ID, 01 for the players inventory, or 00 for when the item is disabled
ItemLocator AED1 LD E,A Load the item ID into DE.
AED2 LD D,$00
AED4 LD HL,$A66C HL=Table_ItemLocations+DE.
AED7 ADD HL,DE
AED8 LD A,(HL) Fetch the item location and store it in A.
AED9 RET Return.
View the equivalent code in The Jewels Of Babylon.
Prev: AEAF Up: Map Next: AEDA