![]() |
Routines |
| Prev: 25351 | Up: Map | Next: 25400 |
|
Used by the routine at MovePercyLeft.
Percy has gone past the left edge so transition into the previous room.
|
||||||||
| TransitionRoomLeft | 25375 | PUSH AF | Stash AF on the stack. | |||||
| 25376 | LD A,(24517) | A=*CurrentRoom. | ||||||
|
If the current room is room 1 wrap around to room 11.
|
||||||||
| 25379 | CP 1 | Jump to TransitionRoomLeft_SetRoom if this isn't room 1. | ||||||
| 25381 | JR NZ,TransitionRoomLeft_SetRoom | |||||||
| 25383 | LD A,12 | Set A to room 12 (will become 11 after decrement). | ||||||
| TransitionRoomLeft_SetRoom | 25385 | LD (IX+0),238 | Write 238 to *IX+0 (reset Percy's X to right edge). | |||||
| 25389 | DEC A | Decrement room number. | ||||||
| 25390 | LD (24517),A | Write A to *CurrentRoom. | ||||||
| 25393 | POP AF | Restore AF from the stack. | ||||||
| 25394 | CALL PopulateRoomBuffer | Call PopulateRoomBuffer to draw the new room. | ||||||
| 25397 | POP AF | Discard two stack values. | ||||||
| 25398 | POP AF | |||||||
| 25399 | RET | Return. | ||||||
| Prev: 25351 | Up: Map | Next: 25400 |