| Prev: 7812 | Up: Map | Next: 7ACD |
7AB9: Initial game setup
|
Displays the control selection dialog, waits for user input (or times out to overview mode), then shows the game mode dialog. Stores the selected control type in tmp_control_type, overview flag in state_overview_mode, and game mode in state_game_mode. Uses a stack trick: sets SP to setup_sp so RET jumps to start_gameplay_or_overview.
|
||||
| setup | 7AB9 | LD DE,$7A2E | Print control types dialog | |
| 7ABC | LD BC,$008B | |||
| 7ABF | CALL $203C | |||
| 7AC2 | LD HL,$FFFF | Initialize timer | ||
| 7AC5 | LD ($7802),HL | |||
| 7AC8 | LD A,$0D | |||
| 7ACA | LD ($5C08),A | |||
| Prev: 7812 | Up: Map | Next: 7ACD |