Prev: 39857 Up: Map Next: 39900
39882: Locate Object
Input
A Object ID
Output
IX The object data address from Objects
Locates an object from a given object ID.
LocateObject 39882 LD IX,49251 Use the object table as this object.
39886 CALL IndexIdTable Call IndexIdTable to locate the object.
39889 PUSH HL Read the object's address from the index entry.
39890 LD L,(IX+1)
39893 LD H,(IX+2) Read the high byte of the object's address.
39896 EX (SP),HL Swap HL with the address on the stack.
39897 POP IX Restore IX from the stack.
39899 RET Return.
View the equivalent code in;
Prev: 39857 Up: Map Next: 39900