Prev: 26988 Up: Map Next: 27085
27071: 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 27071 CALL ObjectAddress Call ObjectAddress.
27074 PUSH HL Stash that pointer on the stack.
27075 LD B,A Point at the second object.
27076 CALL ObjectAddress
27079 LD A,(HL) Exchange the two location bytes.
27080 LD (HL),C
27081 POP HL
27082 LD (HL),A
27083 JR RoomHasChanged Jump to RoomHasChanged.
Prev: 26988 Up: Map Next: 27085