Prev: 6A16 Up: Map Next: 6A3C
6A2F: 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 6A2F CALL ObjectAddress Call ObjectAddress.
6A32 PUSH HL Stash the destination pointer on the stack.
6A33 LD B,A Copy the source object into B.
Address the source object.
6A34 CALL ObjectAddress Call ObjectAddress.
6A37 LD A,(HL) Fetch its location.
6A38 POP HL Restore the destination pointer from the stack.
6A39 LD (HL),A Copy that location onto object B.
6A3A JR SetObject_Here Jump to SetObject_Here so a copy into this room is described.
Prev: 6A16 Up: Map Next: 6A3C