Prev: 9BB1 Up: Map Next: 9BDC
9BCA: Locate Object
Input
A Object ID
Output
IX The object data address from Objects
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