| ← BE03 | Map | BEF9 → |
BE3C: Print the front-end menu text
|
Prints the seven front-end menu lines at double height from the menu text, each in a set ink.
|
|||
| draw_title_menu | BE3C | LD HL,title_menu_line1 | Line 1, character row 6 column 8. |
| BE3F | LD DE,main_menu_text | Menu text, each line closed by a terminator | |
| BE42 | LD C,$47 | Bright white | |
| BE44 | CALL print_string_2x | ||
| BE47 | LD HL,title_menu_line2 | Line 2, character row 8 column 8. | |
|
Lines print top to bottom from the menu text.
|
|||
| BE4A | INC DE | Step DE past the terminator to the next line; repeats before each line below. | |
| BE4B | LD C,$46 | Bright yellow | |
| BE4D | CALL print_string_2x | ||
| BE50 | LD HL,title_menu_line3 | Line 3, character row 10 column 8. | |
| BE53 | INC DE | ||
| BE54 | LD C,$43 | Bright magenta | |
| BE56 | CALL print_string_2x | ||
| BE59 | LD HL,title_menu_line4 | Line 4, character row 12 column 8. | |
| BE5C | INC DE | ||
| BE5D | LD C,$44 | Bright green | |
| BE5F | CALL print_string_2x | ||
| BE62 | LD HL,title_menu_line5 | Line 5, character row 14 column 8. | |
| BE65 | INC DE | ||
| BE66 | LD C,$45 | Bright cyan | |
| BE68 | CALL print_string_2x | ||
| BE6B | LD HL,title_menu_line6 | Line 6, character row 16 column 8. | |
| BE6E | INC DE | ||
| BE6F | LD C,$47 | Bright white | |
| BE71 | CALL print_string_2x | ||
| BE74 | LD HL,SCREEN_BASE+$10A4 | Line 7, copyright, character row 21 column 4. | |
| BE77 | INC DE | ||
| BE78 | LD C,$4E | Bright yellow ink on blue paper. | |
| BE7A | CALL print_string_2x | ||
| BE7D | LD HL,title_menu_col8_attr | Repaint column 8 of character rows 10–17 to bright white. There column 8 holds the keycap digits 2, 3 and 4, and a blank on the OPTIONS line. The keycaps of START GAME and KEYBOARD keep their own line color. The white is a cosmetic emphasis, and the selected line has a highlight of its own. | |
| BE80 | LD B,$08 | Walk down the keycap column, one attribute row at a time. | |
| menu_paint_col | BE82 | LD (HL),$47 | Force the bright-white attribute into the cell. |
| BE84 | CALL advance_buffer_row | ||
| BE87 | DJNZ menu_paint_col | ||
| BE89 | RET | ||
| main_menu_text | BE8A | DEFM "0 START GAM","E"+$80 | Start-game line |
| menu_line_keyboard | BE96 | DEFM "1 KEYBOAR","D"+$80 | Keyboard line |
| menu_line_kempston | BEA0 | DEFM "2 KEMPSTON JOYSTIC","K"+$80 | Kempston joystick line |
| menu_line_cursor | BEB3 | DEFM "3 CURSOR JOYSTIC","K"+$80 | Cursor joystick line |
| menu_line_if2 | BEC4 | DEFM "4 INTERFACE I","I"+$80 | Interface II line |
| menu_line_options | BED2 | DEFM " O - OPTION","S"+$80 | Options line |
| menu_copyright | BEDF | DEFM " @ 1987 GREMLIN GRAPHICS."," "+$80 | Copyright line |
| ← BE03 | Map | BEF9 → |
