I recently purchased a Larken Disk System for my TS2068 and found myself frustrated by the lack of a simple and short disk file LOAD program where I didn’t have to type each file name into a LOAD menu program. I decided to use the SCREEN$ token to read file names from the screen following a disk CAT. The following brief program will do just that, and can be modified to CAT and LOAD from any disk system by changing the lines annotated below. Carefully type in the following program and change the CAT and LOAD commands in lines 30 and 150 to suit your disk system. I saved the program as an AUTOSTART file. The program will CAT the current drive and display the contents in the normal way. If the screen is full and you get the SCROLL? prompt, you may either press ENTER to continue the CAT or press the BREAK key to select and LOAD the highlighted file on the screen. ON ERR is used to allow you to LOAD a file found on the screen instead of SCROLLing to the next page. This program is user configurable by allowing you to change screen colors and selection keys. Feel free to add your own enhancements/options.
Happy TIMEXing…
“LOADER” By Michael J. Di Rienzo
10 POKE 23658,8: PAPER 1: BORDER 0: INK 9: CLS : DIM C$(10)
20 ON ERR GO TO 50
30 RANDOMIZE USR 100: CAT "",
40 PRINT #1;AT 0,0;"'ENTER' advances Cursor, Space Bar selects file, 'X' CATs Disk."
50 FOR L=0 TO 21
60 LET P=0: LET Q=9: GO SUB 160: LET P=16: LET Q=25: GO SUB 160
70 NEXT L: GO TO 50
80 LET B$="": LET E=10: ON ERR RESET
90 FOR C=P TO Q
100 LET A$=SCREEN$ (L,C): LET B$=B$+A$
110 NEXT C
120 FOR F=LEN B$ TO 1 STEP -1: IF CODE B$(F)=32 THEN LET E=E-1: NEXT F
130 LET B$=B$( TO E)
140 PAPER 7: INK 0: BORDER 7: CLS : PRINT #1;AT 0,0; FLASH 1;"LOADing..."; FLASH 0; PAPER 2; INK 9;B$
150 RANDOMIZE USR 100: LOAD B$: STOP
160 PAUSE 10: PRINT OVER 1; PAPER 2; INK 6;AT L,P;C$
170 IF INKEY$="" THEN GO TO 170
180 PRINT OVER 1; PAPER 1; INK 9;AT L,P;C$
190 IF INKEY$="X" THEN RUN
200 IF INKEY$=" " THEN GO TO 80
210 RETURN
10 - Sets caps, screen colors and select bar width.
20 - BREAK brings select bar.
30 - Larken CATalogue line.
40 - User instructions at input line.
50-60 - 10 character wide select bar moves in two columns
of Larken CAT screen. Bar alternates columns.
70 Bar wraps back to line 1.
80 - ON ERR GOTO 50 cancelled.
90-100 - Reads hilighted file name from screen.
120 - Removes any spaces to the right of the file name.
140 - Prints LOADing file message, resets ON ERR,
allows error messages.
150 - Larken LOAD line.
160 - Prints select bar over file name.Sets bar speed.
180 - Removes select bar.
190 - Detects key to re-CAT.
200 - Detects key to select and LOAD file.
Reprinted with the author’s permission. Copyright 1990 Michael DiRienzo (cover contents note).
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.