![]() |
Routines |
| Prev: 9BB1 | Up: Map | Next: 9BDC |
|
Used by the routines at Table_AddressTheObjectName, Action_Look, Action_Pickup, Action_Direction, Action_CheckTheObjectFlags, Action_LocateAndFollow, Action_CarryOnWithTheObject, Action_RollAgainstTen, Action_Examine, Turn_RunTheActionHandler, Turn_RunTheHandlerIfPresent, Turn_ReportWhoIsCarryingAnObject, Turn_ThePlayerHasDied, TurnReportACharacter, ActionClimb, Condition_TestTheObjectIsHeld, Condition_WhereTheObjectIs, ContainerLit, ObjectFirstLocation, TableListWhatIsHere, MessageListTheObjects, Action_ClearTheTie, ActionClimbOut, EventContainersAndScripts and Event_TheRing.
Finds an object record from its id.
|
||||||||||||
|
Locates an object from a given object ID.
|
||||||||||||
| LocateObject | 9BCA | LD IX,$C063 | Use the object table as this object. | |||||||||
| 9BCE | CALL IndexIdTable | Call IndexIdTable to locate the object. | ||||||||||
| 9BD1 | PUSH HL | Read the object's address from the index entry. | ||||||||||
| 9BD2 | LD L,(IX+$01) | |||||||||||
| 9BD5 | LD H,(IX+$02) | Read the high byte of the object's address. | ||||||||||
| 9BD8 | EX (SP),HL | Swap HL with the address on the stack. | ||||||||||
| 9BD9 | POP IX | Restore IX from the stack. | ||||||||||
| 9BDB | RET | Return. | ||||||||||
|
View the equivalent code in;
|
||||||||||||
| Prev: 9BB1 | Up: Map | Next: 9BDC |