A lettered menu for a Larken disk, saved with the LKDOS AUTOSTART feature so it runs when the disk boots. It draws a framed “LARKEN DISK MENU” screen from DATA names and loads the chosen program with PRINT #4: LOAD. The load lines are examples to replace with your own programs; line 3 clears RAMTOP and saves the menu with RANDOMIZE USR 102 (AUTOSTART). It can be set up for TS2068 or Spectrum-mode disks.
Needs the Larken disk system: line 4 (PRINT USR 100) resets a TS2068 without it, so there is no download. Introduced in the newsletter by George Chambers.
Published in Sinc-Link November/December 1987 (LARKEN/TS2068 Autostart Menu).
Source Code
1 REM DISK MENU
2 GO TO 4
3 CLEAR 25500: BORDER 0: PAPER 0: INK 0: CLS : RANDOMIZE USR 102
4 PRINT USR 100: OPEN #4,"dd"
5 BORDER 1: INK 7: PAPER 0: CLS
6 PRINT AT 1,2; PAPER 2;" LARKEN DISK MENU "
8 POKE 23658,8: LET x=8
9 RESTORE 100
10 FOR n=1 TO x
20 READ a$: PRINT " ";CHR$ (n+64);" - ";a$
25 PRINT
30 NEXT n
34 INK 4
35 PLOT INK 4;0,0: DRAW 255,0: DRAW 0,175: DRAW -255,0: DRAW 0,-175: PLOT 1,1: DRAW 253,0: DRAW 0,173: DRAW -253,0: DRAW 0,-173: INK 7
38 PLOT 9,20: DRAW 237,0: DRAW 0,135: DRAW -237,0: DRAW 0,-135
50 PRINT AT 20,1; PAPER 2;" "; FLASH 1;"Press A to ";CHR$ (x+64);" only"; FLASH 0;" "
70 LET n$=INKEY$
80 IF n$<"A" OR n$>CHR$ (x+64) THEN GO TO 70
85 BORDER 0: PAPER 0: INK 7: CLS
90 GO TO (CODE n$-64)*200
100 DATA "Program Name ","Next program name ","and so on.... "," "," "," "," "," "
160 GO TO 1
200 PRINT #4: LOAD "NMI-S1.CM.C1"CODE
400 PRINT #4: LOAD "Progrm.B1"
600 PRINT AT 10,1;"Press any key to start"
610 PRINT #4: LOAD "Progrm.B1"
800 PRINT AT 10,0;"Press any key to start"
810 PRINT #4: LOAD "Progrm.C1"CODE
1000 PRINT #4: LOAD "Progrm.C1"CODE
1010 RANDOMIZE USR 54016
1020 GO TO 1
1200 PRINT AT 10,0;"Press key A, B, C, or D to start"
1210 PRINT #4: LOAD "NMI-S1.C1"CODE
1400 PRINT #4: LOAD ".C1"CODE
1600 PRINT AT 10,0;"Press ENTER key to start"
1610 PRINT #4: LOAD ".C1"CODENote: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.