![]() |
Routines |
| Prev: 54279 | Up: Map | Next: 54317 |
|
Used by the routine at 51943.
|
||||
| 54289 | CALL Door_Prep_01 | Check the doors are closed. If not, this routine will exit because of the POP BC instruction at 54261. If the doors are closed AND there is money in every slot, the routine will exit out further because of the two POP AF instructions at 54275 and 54276. Note - Don't try this at home. | ||
| 54292 | PUSH DE | Remember DE. | ||
| 54293 | CALL Controls | Get user input. | ||
| 54296 | LD A,(54017) | Has the player pressed "right"? (Right) | ||
| 54299 | AND A | |||
| 54300 | CALL NZ,54317 | Move right if so | ||
| 54303 | LD A,(54018) | Has the player pressed "left"? (Right) | ||
| 54306 | AND A | |||
| 54307 | CALL NZ,54345 | Move right if so | ||
| 54310 | POP DE | Restore DE. | ||
| 54311 | DEC DE | Loop 1024 times (was set up at 54268). | ||
| 54312 | LD A,D | |||
| 54313 | OR E | |||
| 54314 | RET Z | |||
| 54315 | JR 54292 | Check input again. Will exit this routine when a door is open or the game is complete. | ||
| Prev: 54279 | Up: Map | Next: 54317 |