Q! Boot That Disk!

See all articles from CATS v6 n8
Author(s): Mark Fisher
Publication: CATS Newsletter
Pub Details: CATS v6 n8 (Volume 6, Issue 8)
Date: December 1988
Pages: 7

Here’s a little program that’ll make it much easier to load programs from your AERCO disks. Rather than laboriously typing the peculiar AERCO syntax, this program will allow you to select the desired program from the directory, and LOAD it by merely pressing ENTER. As written, it will LOAD only BASIC programs, as specialized files are usually LOADed by their specific programs. A copy of this program on each disk will allow you to select the program you need as soon as you turn the system on. In dealing with disks that contain a variety of programs, it might help to add a line that re-LOADs the boot program at the termination of each program. Operation Operation is straight foreward. The program variables are set up, screen prepared, and a CAT””, command reads the disk (lines 0-150). The selected program is indicated with a highlight block. This block can be moved around with the cursor keys (lines 200-300). When the desired program is selected, pressing ENTER moves to “getit” (lines 400 – ). Here, the program name is read off the screen using SCREEN$, and built up in p$. As the program is read, it is printed at the top of the screen, to assist you if there are any problems in LOADing the program. The “.BAS” extension is added to p$ by the program, before the CAT “p$”, command LOADs the program.

10 REM ***** General BOOT *****
20 REM attempt 5
30 REM by Mark Fisher
40 REM 1988
50 LET menu=200
60 LET getit=400
70 LET loadit=500
80 LET r$="" : REM response$ from keyboard
90 LET s$="" : REM screen$ to build p$
100 LET p$="" : REM program$ used TO THEN LOAD selected program
110 LET l=5 : LET c=0 : REM line & column for cursor position
120 LET c$=" " : REM cursor$ to highlight selection
130 INK 7 : PAPER 0 : BORDER 0 : CLS
140 CAT "",
150 BORDER 2 : PRINT #0;AT 0,0;"Use <v`> (5678) to select prog. <ENT> TO THEN LOAD program " : BORDER 0
200 REM **** Menu Loop ****
210 OVER 1 : INVERSE 1 : PRINT AT l,16*c;c$ : OVER 0 : INVERSE 0
220 PAUSE 0 : LET r$=INKEY$
230 IF CODE r$=13 THEN GO TO getit
240 IF r$<"5" OR r$>"8" THEN GO TO menu
250 OVER 1 : INVERSE 1 : PRINT AT l,16*c;c$ : OVER 0 : INVERSE 0
260 LET l=l+(r$="6")-(r$="7")
270 IF r$="6" AND SCREEN$ (l,16*c+1)=" " THEN LET l=5 : LET c=NOT c
280 IF l=4 THEN LET l=5 : LET c=NOT c
290 IF r$="8" OR r$="5" THEN LET c=NOT c
300 GO TO menu
400 REM **** getit - build program name *****
410 PRINT AT 0,0;TAB 31'TAB 31'AT 0,4;"Loading ";: REM CLEAR top 2 lines
420 FOR i=c*16+1 TO c*16+16
430 LET s$=SCREEN$ (l,i)
440 IF s$="." THEN GO TO loadit
450 PRINT s$;
460 LET p$=p$+s$
470 NEXT i
500 REM **** loadit finally! ****
510 LET p$=p$+".BAS"","
520 CAT "p$",
8999 STOP
9900 OUT 244,1 : MOVE "BOOT.BAS",1

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