Prev: 44719 Up: Map Next: 44762
44753: Item Locator
Input
A Item ID
Output
A Either a room ID, 1 for the players inventory, or 0 for when the item is disabled
ItemLocator 44753 LD E,A Load the item ID into DE.
44754 LD D,0
44756 LD HL,42604 HL=Table_ItemLocations+DE.
44759 ADD HL,DE
44760 LD A,(HL) Fetch the item location and store it in A.
44761 RET Return.
View the equivalent code in The Jewels Of Babylon.
Prev: 44719 Up: Map Next: 44762