![]() |
Routines |
| Prev: F23B | Up: Map | Next: F2E2 |
|
Used by the routine at game.
Called by game before each game. Clears the screen, draws the frame from menu_frame_ticks, prints the twelve lines of text at menu_text with print_strings, puts the two small glyphs of the copyright line (player_count) and colours them, draws a rule under the title, shows the two players' control methods (move_method_arrow), plays the title tune at title_tune until a key is pressed (play_tune_until_key), runs the menu's loop menu_loop until 0 starts a game, and plays the start tune at start_tune to the end.
|
||||
| menu | F26C | CALL clear_pixels | Clear the pixels, attributes to white on black | |
| F26F | CALL clear_attributes | |||
| F272 | LD IX,menu_frame | The frame, with its corners and tick marks | ||
| F276 | LD DE,menu_frame_corners | |||
| F279 | LD (IX+$09),E | |||
| F27C | LD (IX+$0A),D | |||
| F27F | LD DE,menu_frame_ticks | |||
| F282 | LD (IX+$0C),E | |||
| F285 | LD (IX+$0D),D | |||
| F288 | CALL draw_frame | |||
| F28B | LD DE,menu_text | The twelve lines of text | ||
| F28E | LD B,$0C | |||
| F290 | CALL print_strings | |||
| F293 | LD HL,$BF40 | The two glyphs on the copyright line | ||
| F296 | LD DE,copyright_glyphs | |||
| F299 | CALL draw_bitmap | |||
| F29C | LD HL,$BEB0 | |||
| F29F | CALL draw_bitmap | |||
| F2A2 | LD A,$46 | Their colour | ||
| F2A4 | LD ($5AE9),A | |||
| F2A7 | LD ($5AF6),A | |||
| F2AA | LD HL,$486C | A rule under the title | ||
| F2AD | LD (HL),$0F | |||
| F2AF | INC L | |||
| F2B0 | LD B,$06 | |||
| menu_0 | F2B2 | LD (HL),$FF | ||
| F2B4 | INC L | |||
| F2B5 | DJNZ menu_0 | |||
| F2B7 | LD (HL),$F0 | |||
| F2B9 | LD IX,player1_pointer | Show each player's control method | ||
| F2BD | LD DE,pointer_p1_graphic | |||
| F2C0 | CALL move_method_arrow | |||
| F2C3 | LD IX,player2_pointer | |||
| F2C7 | LD DE,pointer_p2_graphic | |||
| F2CA | CALL move_method_arrow | |||
| F2CD | CALL menu_show_players | The title tune, until a key is pressed | ||
| F2D0 | LD DE,title_tune | |||
| F2D3 | CALL play_tune_until_key | |||
| F2D6 | CALL menu_loop | The menu's keys, until 0 | ||
| F2D9 | CALL menu_show_players | The start tune, played to the end | ||
| F2DC | LD DE,start_tune | |||
| F2DF | JP play_tune | |||
| Prev: F23B | Up: Map | Next: F2E2 |