![]() |
Routines |
| Prev: 696C | Up: Map | Next: 69CD |
|
Exchanges the locations of the object in the parameter and the object addressed by A, then marks the room changed.
|
||||
| SwapObjects | 69BF | CALL ObjectAddress | Point at the first object's location. | |
| 69C2 | PUSH HL | |||
| 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 once the two locations have been exchanged. | ||
| Prev: 696C | Up: Map | Next: 69CD |