![]() |
Routines |
| Prev: F916 | Up: Map | Next: F992 |
|
Used by the routine at GameEntryPoint.
Turn caps lock on, clear the flags, copy in a fresh game and enter the Great Valley.
|
||||
| GameStart | F964 | LD HL,$5C6A | Turn CAPS LOCK on, using bit 3 of *FLAGS2. | |
| F967 | SET 3,(HL) | |||
|
Seal the passages that the player has to open.
|
||||
| F969 | XOR A | Seal the farmhouse, the woodman's hut and both sides of the chasm. | ||
| F96A | LD ($E941),A | |||
| F96D | LD ($E996),A | |||
| F970 | LD ($E9B4),A | |||
| F973 | LD ($E9BB),A | |||
| F976 | LD ($EAA4),A | Seal the witch's hovel, the rock wall and the cavern. | ||
| F979 | LD ($EAAA),A | |||
| F97C | LD ($EADA),A | |||
|
Install a fresh game.
|
||||
| F97F | LD HL,$F992 | Copy 013C bytes from DefaultGameState over the game state at GameState. | ||
| F982 | LD DE,$B9C8 | |||
| F985 | LD BC,$013C | |||
| F988 | LDIR | |||
| F98A | LD A,$05 | Enter room 05, the Great Valley. | ||
| F98C | CALL Handler_InjuryCheck | Call Handler_InjuryCheck to enter the Great Valley. | ||
| F98F | JP GameLoop | Jump to GameLoop to take the first turn. | ||
|
View the equivalent code in;
|
||||
| Prev: F916 | Up: Map | Next: F992 |