Prev: 8470 Up: Map Next: 9586
9560: Initialise Game
Used by the routine at Start_Game.
Initialise_Game 9560 CALL Initialise_Interrupts Call Initialise_Interrupts.
Wait 64 frames.
9563 LD B,$64 Set the frame counter to 64 in B.
Wait_Frames 9565 HALT Halt, and loop back to Wait_Frames until the frame counter is zero.
9566 DJNZ Wait_Frames
Draw the cockpit and menu:
menu-cockpit
Draw the cockpit in the bottom third of the screen.
9568 LD HL,$F000 Copy 0800 bytes from Graphics_Dashboard to 5000 (screen buffer).
956B LD DE,$5000
956E LD BC,$0800
9571 LDIR
9573 LD DE,$5A00 Copy 0100 bytes from Graphics_Dashboard_Attributes to 5A00 (attribute buffer).
9576 LD BC,$0100
9579 LDIR
Then add the menu.
957B CALL Handle_Menu Call Handle_Menu.
Main loop.
Main_Loop 957E CALL Update_Frame Call Update_Frame.
9581 CALL Display_Status Call Display_Status.
9584 JR Main_Loop Jump to Main_Loop.
Prev: 8470 Up: Map Next: 9586