![]() |
Routines |
| Prev: D407 | Up: Map | Next: D42D |
|
Used by the routine at CAE7.
|
||||
| D411 | CALL Door_Prep_01 | Check the doors are closed. If not, this routine will exit because of the POP BC instruction at D3F5. 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 D403 and D404. Note - Don't try this at home. | ||
| D414 | PUSH DE | Remember DE. | ||
| D415 | CALL Controls | Get user input. | ||
| D418 | LD A,($D301) | Has the player pressed "right"? (Right) | ||
| D41B | AND A | |||
| D41C | CALL NZ,$D42D | Move right if so | ||
| D41F | LD A,($D302) | Has the player pressed "left"? (Right) | ||
| D422 | AND A | |||
| D423 | CALL NZ,$D449 | Move right if so | ||
| D426 | POP DE | Restore DE. | ||
| D427 | DEC DE | Loop 0400 times (was set up at D3FC). | ||
| D428 | LD A,D | |||
| D429 | OR E | |||
| D42A | RET Z | |||
| D42B | JR $D414 | Check input again. Will exit this routine when a door is open or the game is complete. | ||
| Prev: D407 | Up: Map | Next: D42D |