![]() |
Routines |
| Prev: C106 | Up: Map | Next: C141 |
|
Used by the routines at room_to_drop and pickup_object.
Moves slots 0 to 2 ($5BD8 to $5BE3) up one to slots 1 to 3 and empties slot 0. Whatever was in slot 3 has already been put down, so the carried objects behave as a queue: first picked up, first dropped.
|
||||
| adjust_carried | C12B | LD HL,$5BE3 | 12 bytes up by 4, copied from the top down so they do not overwrite themselves | |
| C12E | LD DE,$5BE7 | |||
| C131 | LD BC,$000C | |||
| C134 | LDDR | |||
| C136 | LD DE,$5BD8 | slot 0 is now free | ||
| C139 | LD B,$04 | |||
| C13B | CALL zero_DE | |||
| C13E | JP done_pickup_drop | |||
| Prev: C106 | Up: Map | Next: C141 |