Prev: 27158 Up: Map Next: 27196
27183: Action: Copy Object Location
Gives the object in B the same location as the object addressed by A.
Input
A Source object
B Destination object
Address the destination object.
CopyObjectLocation 27183 CALL ObjectAddress Call ObjectAddress.
27186 PUSH HL Stash the destination pointer on the stack.
27187 LD B,A Copy the source object into B.
Address the source object.
27188 CALL ObjectAddress Call ObjectAddress.
27191 LD A,(HL) Fetch its location.
27192 POP HL Restore the destination pointer from the stack.
27193 LD (HL),A Copy that location onto object B.
27194 JR SetObject_Here Jump to SetObject_Here so a copy into this room is described.
Prev: 27158 Up: Map Next: 27196