Routines |
Prev: 32549 | Up: Map | Next: 32929 |
Used by the routine at 31744.
|
||||
Prints the first of two menus on screen - this one is for the player to select their controls. The text is stored at 35778.
|
||||
32825 | LD A,0 | Reset menu option to 'none selected' | ||
32827 | LD (35754),A | |||
Clear the screen
|
||||
32830 | CALL 33115 | Clear the screen (pixels) | ||
32833 | LD A,15 | Set INK 7 (white), PAPER 1 (blue) | ||
32835 | CALL 33130 | Set screen colours | ||
Print the menu
|
||||
32838 | LD HL,16417 | Set menu starting PRINT position at row 1, column 1 | ||
32841 | LD DE,35778 | Store the address of the start of the menu text | ||
32844 | LD (35776),DE | |||
32848 | CALL 33145 | Print first line of menu text "PRESS 1-4 TO CHANGE OPTION" | ||
32851 | LD HL,16451 | Set PRINT position at 2,3 (row/column) | ||
32854 | CALL 33145 | Print next line of menu text "ENTER TO START PROGRAM" | ||
32857 | LD HL,16545 | Set PRINT position at 5,1 | ||
32860 | CALL 33145 | Print "1 KEMPSTON JOYSTICK (PORT 31)" | ||
32863 | LD HL,16609 | Set PRINT position at 7,1 | ||
32866 | CALL 33145 | Print "2 AGF JOYSTICK (CURSOR KEYS)" | ||
32869 | LD HL,18465 | Set PRINT position at 9,1 | ||
32872 | CALL 33145 | Print "3 SINCLAIR JOYSTICK" | ||
32875 | LD HL,18529 | Set PRINT position AT 11,1 | ||
32878 | CALL 33145 | Print "4 KEYBOARD SET UP AS FOLLOWS" | ||
32881 | LD HL,18595 | Set PRINT position AT 13,3 | ||
32884 | CALL 33145 | Print "UP DOWN LEFT RIGHT FIRE" | ||
The next part prints the key options for the 5 directions (up, down, left, right, fire). Instead of printing one line these are printed in 5 strings.
|
||||
32887 | LD DE,35970 | Store the address of the text for the controls | ||
32890 | LD (35776),DE | |||
32894 | LD HL,18657 | Set PRINT position at 15,1 (row/column) | ||
32897 | LD A,5 | Store count of 5 sets of keys to PRINT (up, down, left, right & fire) | ||
32899 | LD (35756),A | |||
32902 | LD (35771),HL | Store screen print position | ||
32905 | CALL 33145 | PRINT text on screen | ||
32908 | LD HL,(35771) | Retrieve screen print position | ||
32911 | INC HL | Move forward 6 character spaces | ||
32912 | INC HL | |||
32913 | INC HL | |||
32914 | INC HL | |||
32915 | INC HL | |||
32916 | INC HL | |||
32917 | LD (35771),HL | ...and store the updated screen address position | ||
32920 | LD A,(35756) | Retrieve, decrement and re-store counter (x 5 sets) | ||
32923 | DEC A | |||
32924 | LD (35756),A | |||
32927 | JR NZ,32905 | Continue to print until all 5 sets of keys are done |
Prev: 32549 | Up: Map | Next: 32929 |