![]()  | 
Routines | 
| Prev: A60A | Up: Map | Next: A635 | 
| 
 
Used by the routines at A280, CheckObjectInInventory, TransformItem, CheckItemInCurrentRoom, A862 and A871.
 
Given an item ID, this routine returns the byte stored for its location (00 for when an item/ event is disabled, 01 for when an item is in the players inventory, or pass back the room ID).
 
 
  | 
||||||||||||
| 
 
Create an offset in DE.
 
 | 
||||||||||||
| ItemLocator | A62C | LD E,A | Load the item ID into DE. | |||||||||
| A62D | LD D,$00 | |||||||||||
| A62F | LD HL,$9F88 | Add the item ID offset to Table_ItemLocations. | ||||||||||
| A632 | ADD HL,DE | |||||||||||
| A633 | LD A,(HL) | Fetch the item location and store it in A. | ||||||||||
| A634 | RET | Return. | ||||||||||
| 
 
View the equivalent code in; 
 
 | 
||||||||||||
| Prev: A60A | Up: Map | Next: A635 |