Routines |
Prev: 9BB1 | Up: Map | Next: 9BDC |
Used by the routines at 70F3, Action_Look, Action_Pickup, Action_Dir, Action_Attack, Action_Examine, 96B3, 9ACD, 9B16, 9C78, 9D44, ContainerLit, ObjectFirstLocation, A050, A0C8, DisplayExits, ActionClimbOut and A55F.
|
||||||||||||
Locates an object from a given object ID.
|
||||||||||||
LocateObject | 9BCA | LD IX,$C063 | IX=the start address of the object table. | |||||||||
9BCE | CALL IndexIdTable | Call IndexIdTable to locate the object. | ||||||||||
9BD1 | PUSH HL | Stash HL on the stack. | ||||||||||
9BD2 | LD L,(IX+$01) | HL=the corresponding object address from the object table. | ||||||||||
9BD5 | LD H,(IX+$02) | |||||||||||
9BD8 | EX (SP),HL | IX=HL and restore the old value of HL from the stack. | ||||||||||
9BD9 | POP IX | |||||||||||
9BDB | RET | Return. |
Prev: 9BB1 | Up: Map | Next: 9BDC |