|  | Routines | 
| Prev: 39857 | Up: Map | Next: 39900 | 
| 
Used by the routines at 28915, Action_Look, Action_Pickup, Action_Dir, Action_Attack, Action_Examine, 38579, 39629, 39702, 40056, 40260, ContainerLit, ObjectFirstLocation, 41040, 41160, DisplayExits and ActionClimbOut.
 
 
 | ||||||||||||
| 
Locates an object from a given object ID.
 | ||||||||||||
| LocateObject | 39882 | LD IX,49251 | IX=the start address of the object table. | |||||||||
| 39886 | CALL IndexIdTable | Call IndexIdTable to locate the object. | ||||||||||
| 39889 | PUSH HL | Stash HL on the stack. | ||||||||||
| 39890 | LD L,(IX+1) | HL=the corresponding object address from the object table. | ||||||||||
| 39893 | LD H,(IX+2) | |||||||||||
| 39896 | EX (SP),HL | IX=HL and restore the old value of HL from the stack. | ||||||||||
| 39897 | POP IX | |||||||||||
| 39899 | RET | Return. | ||||||||||
| Prev: 39857 | Up: Map | Next: 39900 |