Prev: 64421 Up: Map Next: 64476
64425: Game Start
Used by the routine at Jump_GameStart.
Copy the default state into working memory, open the starting exits, and enter the game loop.
GameStart 64425 LD HL,64476 Copy 390 bytes from DefaultGameState to the item-location table.
64428 LD DE,44406
64431 LD BC,390
64434 LDIR
Remove a bunch of room exits (as actions in the game will open them back up).
64436 LD IX,59762 Point IX at the configurable exits.
64440 LD A,(44794) Count the configurable exits to close.
64443 LD B,A
64444 XOR A Set A to 0 which "removes" the exit.
GameStart_Loop 64445 LD L,(IX+0) Close this configurable exit.
64448 LD H,(IX+1)
64451 LD (HL),A
64452 INC IX
64454 INC IX
64456 DJNZ GameStart_Loop
64458 LD A,36 Open the east exit from the Hall of Infinity into the Lair of the Hydra.
64460 LD (59578),A
64463 LD A,63 Open the south exit from the Hall of the Phoenix into the Hall of Black Magic.
64465 LD (59697),A
64468 LD A,3 Begin in the Field.
64470 CALL Handler_ChangeRoom
64473 JP GameLoop Continue at GameLoop.
View the equivalent code in;
Prev: 64421 Up: Map Next: 64476