![]() |
Routines |
| Prev: 41016 | Up: Map | Next: 41060 |
|
Used by the routines at Alias_GameEntryPoint and 41195.
Starts a game: clears the parser, asks whether pictures are wanted, then runs each character from the timetable.
|
||||
| GameEntryPoint | 41024 | XOR A | Clear the parser workspace and the initialised flag. | |
| 41025 | LD (54968),A | |||
| 41028 | LD (40987),A | |||
| 41031 | DI | |||
|
Draw decorative line.
|
||||
| 41032 | CALL DrawDecorativeLine | Call DrawDecorativeLine to draw the decorative line. | ||
| 41035 | LD SP,23936 | Point the stack at Table_WordIndex. | ||
| 41038 | CALL WaitForKeypress_Loop | Call WaitForKeypress_Loop to wait for keypress. | ||
| 41041 | CP 110 | Jump to GameEntryPoint_ClearFlags if the player pressed "n". | ||
| 41043 | JR Z,GameEntryPoint_ClearFlags | |||
| 41045 | CP 78 | See whether the key is N. | ||
|
The player didn't press N, so pictures stay enabled.
|
||||
| 41047 | LD A,1 | Go to GameEntryPoint_Next with 1 (pictures on) unless the key was N. | ||
| 41049 | JR NZ,GameEntryPoint_Next | |||
|
The player pressed either "N" or "n".
|
||||
| GameEntryPoint_ClearFlags | 41051 | XOR A | Clear the pictures-enabled flag. The player pressed n. | |
| GameEntryPoint_Next | 41052 | LD (40977),A | Record the pictures-enabled flag. | |
| 41055 | LD A,R | Write the contents of the Memory Refresh Register to *41015. | ||
| 41057 | LD (41015),A | |||
| Prev: 41016 | Up: Map | Next: 41060 |