Prev: 696C Up: Map Next: 69CD
69BF: Action: Swap Objects
Exchanges the locations of the object in the parameter and the object addressed by A, then marks the room changed.
Input
A Second object
B First object
C First object location
Address the first object.
SwapObjects 69BF CALL ObjectAddress Call ObjectAddress.
69C2 PUSH HL Stash that pointer on the stack.
69C3 LD B,A Point at the second object.
69C4 CALL ObjectAddress
69C7 LD A,(HL) Exchange the two location bytes.
69C8 LD (HL),C
69C9 POP HL
69CA LD (HL),A
69CB JR RoomHasChanged Jump to RoomHasChanged.
Prev: 696C Up: Map Next: 69CD