Spectrum Games Disk Menu (MENU.B1)

Developer(s): George Chambers
Date: 1992
Type: Program
Platform(s): TS 2068

An AUTOSTART menu for a disk of Spectrum games, reworked from a menu by Robert Shade: it lists the games, shows a loading SCREEN$ for some of them, and shows a Tasword help file with the Taswide code. The article explains every line as a programming exercise.

Listing only: it runs under a Spectrum ROM, or the Spectrum EPROM on the Larken cartridge (line 9000 switches to it with a 10-byte bank-switch routine), and needs the Larken disk system, the specific game files, taswi.Cs and the NMI-F code at 23310 from the Jan/Feb 1992 article TS2068-Larken NMI-F Key: Another Application.

Published in Sinc-Link September-October 1992 (A Programming Exercise).

Source Code

   1 REM        DISK MENU
   2 GO TO 5
   3 CLEAR 26000: BORDER 0: PAPE
R 0: INK 0: CLS : RANDOMIZE USR
102: GO TO 10
   4 PRINT USR 64300: PRINT CHR$
 2
  10 CLEAR 65366: PRINT USR 100:
 OPEN #4,"dd"
  20 LET X=7: DIM C$(X,9)
  30 DATA " HELP! HELP! HELP! ",
" "
  40 DATA "LORDS OF CHAOS","LORD
CH.C1","SAMURAI","SAMURI.C1","BL
ACK LAMP","BKLAMP.C1","DAN DARE
II","DANDAR.C1","RED DOOR","RDLO
AD.B1","CHUBBY GRISTLE","CHUBBY.
C1"
  50 DATA " "
  60 DATA " "
  80 POKE 23658,8
  90 PRINT #4: POKE 8200,16350:
RANDOMIZE USR 23310
 100 BORDER 1: PAPER 1: INK 6: C
LS
 110 PRINT AT 1,4; INVERSE 1;"
                      ";AT 2,4;"
   SPECTRUM GAMES DISK  ";AT 3,4
;"
                          "; INV
ERSE 0
 120 RESTORE 30: PRINT AT 5,0: F
OR N=1 TO X: READ D$: PRINT TAB
2; PAPER 3; INK 7;"<";N;">"; PAP
ER 1;TAB 7; PAPER (1 AND N<>1)+(
7 AND N=1); INK (6 AND N<>1)+(2
AND N=1);D$; INK 5;(" GAME" AND
N<>1 AND N<>3 AND N<>6)+(" DEMO"
 AND N=3)+(" ADVENTURE" AND N=6)
: PRINT
 130 READ C$(N)
 140 NEXT N
 150 PRINT AT 21,8; PAPER 0; INK
 6;" SELECT BY NUMBER "
 160 PAUSE 0: LET JUMP=CODE INKE
Y$-48: IF JUMP>X THEN  GO TO 160
 170 IF JUMP=1 THEN  GO TO 3000
 180 IF JUMP=2 OR JUMP=6 THEN  P
RINT #4: LOAD C$(JUMP)CODE
 190 GO SUB 200: RANDOMIZE USR 1
00: LOAD C$(JUMP)CODE
 200 BORDER 0: PAPER 0: INK 0: C
LS
 210 PRINT #4: LOAD ("SAMSC1.C1"
 AND JUMP=3)+("BLPSC1.C1" AND JU
MP=4)+("DANSC1.C1" AND JUMP=5)+(
"CHUBSC.C1" AND JUMP=7)SCREEN$ :
 PAUSE 300
 220 IF JUMP=3 THEN  PRINT #4: L
OAD C$(JUMP)SCREEN$ : PAUSE 300
 230 RETURN
3000 GO SUB 5000
3010 RANDOMIZE USR 100: PRINT "h
elp07.CT": PRINT CHR$ 2: PRINT '
"End of File...Press key for men
u"
3020 PAUSE 0: GO TO 1
5000 INK 0: PAPER 7: BORDER 7: C
LS
5010 IF PEEK 60900<>124 THEN  RA
NDOMIZE USR 100: LOAD "taswi.Cs"
CODE
5020 RANDOMIZE USR 60826: RANDOM
IZE USR 60899: RANDOMIZE USR 643
00: PRINT CHR$ 3: RETURN
8000 INK 0: PAPER 7: BORDER 7: C
LS : LIST : STOP
9000 CLEAR 27000: RESTORE 9030:
FOR n=23300 TO 23309
9010 READ a: POKE n,a
9020 NEXT n
9030 DATA 205,102,0,62,3,211,244
,201,0,0
9040 RANDOMIZE USR 23300
9050 RUN
9994 STOP
9995 RANDOMIZE USR 100: SAVE "ME
NU.B1" LINE 10
9996 STOP

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.