![]() |
Routines |
| Prev: A038 | Up: Map | Next: A064 |
|
Used by the routines at Alias_GameEntryPoint and A0EB.
Starts a game: clears the parser, asks whether pictures are wanted, then runs each character from the timetable.
|
||||
| GameEntryPoint | A040 | XOR A | Clear the parser workspace and the initialised flag. | |
| A041 | LD ($D6B8),A | |||
| A044 | LD ($A01B),A | |||
| A047 | DI | |||
|
Draw decorative line.
|
||||
| A048 | CALL DrawDecorativeLine | Call DrawDecorativeLine to draw the decorative line. | ||
| A04B | LD SP,$5D80 | Point the stack at Table_WordIndex. | ||
| A04E | CALL WaitForKeypress_Loop | Call WaitForKeypress_Loop to wait for keypress. | ||
| A051 | CP $6E | Jump to GameEntryPoint_ClearFlags if the player pressed "n". | ||
| A053 | JR Z,GameEntryPoint_ClearFlags | |||
| A055 | CP $4E | See whether the key is N. | ||
|
The player didn't press N, so pictures stay enabled.
|
||||
| A057 | LD A,$01 | Go to GameEntryPoint_Next with 01 (pictures on) unless the key was N. | ||
| A059 | JR NZ,GameEntryPoint_Next | |||
|
The player pressed either "N" or "n".
|
||||
| GameEntryPoint_ClearFlags | A05B | XOR A | Clear the pictures-enabled flag. The player pressed n. | |
| GameEntryPoint_Next | A05C | LD ($A011),A | Record the pictures-enabled flag. | |
| A05F | LD A,R | Write the contents of the Memory Refresh Register to *A037. | ||
| A061 | LD ($A037),A | |||
| Prev: A038 | Up: Map | Next: A064 |