![]() |
Routines |
| Prev: 6A3C | Up: Map | Next: 6A81 |
|
Puts every object that is carried down in the current room and clears the carried count.
|
||||
| DropEverything | 6A68 | LD B,$FE | Count FE object slots. | |
| 6A6A | LD HL,$5DCA | Point HL at ObjectLocations. | ||
|
Drop one carried object into this room.
|
||||
| DropEverything_One | 6A6D | LD A,($5D89) | Jump to DropEverything_Next if it is not *CarriedObject. | |
| 6A70 | CP (HL) | |||
| 6A71 | JR NZ,DropEverything_Next | |||
| 6A73 | LD A,($5D87) | Write *CurrentRoom into its location. | ||
| 6A76 | LD (HL),A | |||
|
Move on to the next object.
|
||||
| DropEverything_Next | 6A77 | INC HL | The next object. | |
| 6A78 | DJNZ DropEverything_One | Jump to DropEverything_One until every slot is done. | ||
| 6A7A | XOR A | Write 00 to *CarriedCount. | ||
| 6A7B | LD ($5D8C),A | |||
|
The carried objects are now in this room.
|
||||
| 6A7E | JP RoomHasChanged | Jump to RoomHasChanged. | ||
| Prev: 6A3C | Up: Map | Next: 6A81 |