Custom Disk/Tape Directory

Author(s): Bob Swoger
Publication: Nite-Times News
Pub Details: Nite-Times News v3 n5 (Volume 3, Issue 5)
Date: September - October 1989
Pages: 11-15
Bob Swoger, K9WVY   T/S 2068
Motorola, Inc.      T/S 2040
[phone number omitted] T/S 2050
Schaumburg, IL      Legend 1080
                    TASMAN CPI
                    LARKEN DOS

This is the first of a two part article which will give owners of the LARKEN disk system greater ease in getting around from program to program in a multi-drive system. Larry Kenny has made a disk drive system possible for many T/S 2068 owners by making an interface for about $120 while drives can now be found used for under $50. This makes his disk drive system for under $200 comparable to the going price of a floppy drive system used on other 8 BIT color computer systems. If you never had the ability to run Spectrum programs because you didn’t want to open the case of your precious T/S 2068, Larry’s system fixes this problem by providing a place on his controller for a Spectrum ROM and a Kempstone Joy-Stick on his floppy drive interface. Adding his 250K RAM-DISK to my system has really brought me a long way from my old slow tape system.

The program presented here provides a way to find programs filed away on disk or tape and manage their movement within or between storage cases with relative ease. The second program will be a linking program that will allow you to move from drive to drive and easily select a program to run from the disk directory with very little typing.

Even without a disk drive system, this article is very useful for those still using a tape system on their machines or those who wish to file audio or video disks or cassettes. This program was first written as a tape directory but the program presented here is the LarKen disk directory version with modifications given to change it to the cassette tape version.

After years of collecting all sorts of program tapes for my T/S 2068 I began to have trouble finding the program I wished to run amoung the many boxes of tape programs I had aquired, and the list of new programs is still growing! This program has solved my problem by giving me a way to move titles in boxes from slot to slot with great ease. I then store this program in the front slot of the first box and run it first to find other tapes. I also use it to manage my VCR tape drawers and data disk library cases. I store the disk version on my LARKEN RAM-DISK for quick access. I used an earlier version of this program with my ZX81 as the first program on a tape of many programs to show the programs on a single tape and to load the desired program from it. Some may wish to modify this program to do these things.

Each displayed board represents a storage box containing 20 slots. The 20 slots are divided into two columes of ten slots each. Please number these in your mind as 1 thru 10 on the left side and 11 thru 20 on the right. You may put titles as long as 12 characters into each space provided. You may then Add new titles, Delete titles, or Move a title from one slot to another slot either in the same box or a different box. The ability to see the titles in each box is as easy as hitting the ‘NEXT’ key or using the LEFT or RIGHT ARROW keys. A SAVE feature with VERIFY is also provided. LPRINT key will print the contents of all 12 boxes to your T/S 2040 printer and the COPY key will send a picture of the box on the screen to the printer. This can be taped to the inside of the clear plastic top of the tape storage box to show what is inside.

Now for a few tricks. In her book “T/S 2068 BASICS and BEYOND“, Sharon Zardetto Aker states that if we try to print to the 23rd and 24th line of the screen the system will crash. Line 820 shows one of three ways to do this without crashing. The second is an input statement in the form of line 1020 and the third is with the use of the statement “PRINT#1,”string”.

The CUSTOM KEYBOARD SECTION sets up custom features for your machine even after exiting the MENU program as long as the machine is not turned off or another program doesn’t reset the feature. In this section you may enter your favorite POKEs to adjust key ‘click’ or ‘repeat’ key hold down duration.

My favorite feature of the CUSTOM KEYBOARD SECTION took me a little time to find but was well worth the effort. Since I have been writing BASIC programs for about 16 years now, I was accoustomed to having my terminal come up in the CAP or upper case mode to answer prompts. This is accomplished in line 8040 with the POKE 23658,24 statement. POKEing this flag to 16 will cause the machine to return to the lower case mode.

A ‘c/o’ key is provided on the GRAPHICS ‘B’ key in the CUSTOM KEYBOARD SECTION as are a few other things. The GRAPHICS ‘A’ is set-up to provides the interesting background for the MENU board. This key is provided on the ZX81 but not the T/S 2068 and is a nice background on monochrome monitors. It will look purple on a color monitor although it is truely black and white!

Now for a few words about abreviating. As I stated earlier, there is room for only 12 character titles. To fit in longer titles, try leaving out first the vowels, then one of the consecutive double letters in a word. If the word starts with a vowel, leave it in. Most long titles will still make sense. You can use this trick for many other data records in filing systems. If someone misspells a word, it is often because they used the wrong vowel. The ancients could read and write without vowels and you will find that, knowing the rules, you will too. Also, it does save BITES!

A HELP screen is also available to show all the possible keys that will give you desired results. Just press ‘H’ to see the HELP file.

I suggest that when storing tapes or disks that you try to keep a particular theme in each box, utilities in one box, games in another, word processors in another, terminal programs in another, etc. In this way locating a program is made easier. My recently aquired disk library-cases hold 10 disks each. I backup my LARKEN RAM-DISK on disk number 0 and then put disks 0 through 9 in the first case, 10 through 19 in the next case and so on. I then use slots 11 through 20 of the menu board to comment or expand the description for the first 10 slots.

To change the program for use as a LARKEN tape directory change the following lines:

 610 REM *CUSTOM TAPE DIRECTORY*
9993 PRINT #VAL "4": SAVE "TAPES.B1" LINE 8E3

To change the program for use as a tape directory in a tape only system also change the following lines:

9993 SAVE "TAPES.B1" LINE 8000
9995 POKE 23659,0: PRINT AT 22,0 ; PAPER 4;'" Rewind tape & Play to VERIFY ":POKE 23659,2:PRINT AT 0,0
9996 VERIFY "TAPES.B1"
9998 LOAD "L.B1"

To initialize and save the program, after loading it into the T/S 2068 and making ready your storage device, type the following in the immediate mode:

DIM G$(3121):GOTO 9990 <ENTER>

Never RUN this program as all the DATA will be erased! Use GOTO 1 instead.

This program can be downloaded from the CATUG BBS using MTERM II on your Westridge 2050. Use the data parameters 8-N-1 Full-DUPLEX, buffer conversion HEX and the buffer closed and empty. Call 312/576-7072 and after connecting hit <ENTER> until you get the ‘>’ prompt. Then type: LOG [password omitted]

Go to the BBS download section and download either DISKS.B1 or TAPES.B1 . Remember that you are a guest on this board and please act accordingly.

 610 REM *CUSTOM DISK DIRECTORY*WRITTEN BY ROBERT E. SWOGER JULY 23, 1988*
620 PAPER VAL "7": GO TO VAL "8000"
710 REM **** DISPLAY Section **
720 PRINT AT A,L; PAPER VAL "7"; FLASH D;"BOX ";AT A,VAL "17"+(I-D<B);I-D: FOR J=D TO B: PRINT PAPER A; INK VAL "9";AT J*E,D;G$(((I*260)-259)+((J*L)-L) TO ((I*260)-259)+(J*L));AT J*E,17;G$(((I*260)-259)+(((J+B)*L)-L) TO ((I*260)-259)+((J+B)*L)): NEXT J: RETURN
810 REM **** PROMPT Section ***
820 POKE VAL "23659",A: PRINT AT VAL "22",A; INK A; PAPER VAL "4";'" Add Delete Move Next Save": POKE VAL "23659",E: PRINT AT A,A: RETURN
920 POKE 23659,A: PRINT AT 22,A; INK A; PAPER VAL "4";'" PRESS <ENTER> TO CONTINUE ": POKE 23659,E: RETURN
1010 REM **** ADD Section ******
1020 INPUT " ADD MODE - SLOT(1 - 20)?";J: GO TO VAL "1020+(A<J AND J<=C)"
1030 INPUT " TITLE? "; LINE S$
1040 IF S$(D)=" " THEN GO TO VAL "1030"
1050 LET G$(((I*260)-258)+((J*L)-L) TO ((I*260)-259)+(J*L))=S$: GO TO VAL "3130"
2010 REM **** ERASE Section ****
2020 INPUT " DELETE MODE - SLOT(1 - 20)?";J: GO TO VAL "2020+(A<J AND J<=C)"
2030 LET G$(((I*260)-258)+((J*L)-L) TO ((I*260)-259)+(J*L))="": GO TO VAL "3130"
3010 REM **** MOVE Section *****
3020 INPUT " MOVE FROM SLOT?(1 - 20)";J: GO TO VAL "3020+(A<J AND J<=C)"
3030 LET S$=G$(((I*260)-258)+((J*L)-L) TO ((I*260)-259)+(J*L))
3040 POKE VAL "23659",A: PRINT AT VAL "22",A; INK A; PAPER VAL "4";'" DELETE FROM OLD SLOT?": POKE VAL "23659",E
3050 LET Y$=INKEY$: IF Y$="" THEN GO TO VAL "3050"
3060 BEEP .03,34.4: IF Y$(1)="Y" THEN LET G$(((I*260)-258)+((J*L)-L) TO ((I*260)-259)+(J*L))="": GO SUB VAL "700"
3070 IF Y$(1)<>"N" AND Y$(1)<>"Y" THEN GO TO VAL "3040"
3080 INPUT " MOVE TO WHAT BOX?(0 - 23)";I: LET I=I+D: GO TO VAL "3080+(A<I AND I<K)"
3090 GO SUB VAL "700"
3110 INPUT " MOVE INTO SLOT?(1 - 20)";J: GO TO VAL "3110+(A<J AND J<=C)"
3120 LET G$(((I*260)-258)+((J*L)-L) TO ((I*260)-259)+(J*L))=S$
3130 GO TO VAL "9090"
4010 REM **** LPRINT Section ***
4020 FOR I=D TO L-D
4040 LPRINT ,AT A,L;"BOX ";AT A,17+(I-D<B);I-D
4050 FOR J=D TO B
4060 LPRINT ,AT J*E,D;G$(((I*260)-259)+((J*L)-L) TO ((I*260)-259)+(J*L));AT J*E,VAL "17";G$(((I*260)-259)+(((J+B)*L)-L) TO ((I*260)-259)+((J+B)*L))
4070 NEXT J
4080 NEXT I
4090 GO TO VAL "9070"
5010 REM **** HELP Section *****
5020 PRINT AT A,A;"%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%
Each BOARD re
presents a File Boxcontaining 20
SLOTS, 10 down theleft side and
10 down the right,numbered 1
thru 20. Add, Delete,or Move NAM
ES in the slots usingthe Select
Keys shown below.
Option
Select Keys %%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%
ADD
A + DELETE
D 7 - MOVE
M 6 NEXT
N 8 F BACK
B 5 HELP
H ? PRINT
C K L V COPY
P Z SAVE
S END or
QUIT E Q "
5030 GO SUB VAL "900"
5040 LET A$=INKEY$: IF A$="" THEN GO TO VAL "5040"
5050 BEEP .03,34.4: GO TO VAL "9000"
8010 REM ************************** Custom Keyboard Section *******
8020 DIM S$(12): REM DIM G$(3121)
8030 LET A=NOT PI: LET B=VAL "10": LET C=VAL "20": LET D=SGN PI: LET E=VAL "2": LET L=VAL "13": LET K=VAL "25": REM 0-ROWS-SLOTS-1-2-LENGTH-BOXES
8040 POKE VAL "23562",E: POKE VAL "23609",VAL "50": POKE VAL "23658",VAL "24"
8050 REM PRINT #VAL "4": POKE VAL "16096",D: PRINT #VAL "4": OPEN #VAL "3","LP"
8110 FOR H=A TO VAL "7" STEP E
8120 POKE USR "a"+H,BIN 10101010
8130 POKE USR "a"+(H+D),BIN 01010101
8140 NEXT H
8210 POKE USR "b"+0,BIN 01000000
8220 POKE USR "b"+1,BIN 10100010
8230 POKE USR "b"+2,BIN 10000100
8240 POKE USR "b"+3,BIN 10101000
8250 POKE USR "b"+4,BIN 01010000
8260 POKE USR "b"+5,BIN 00101100
8270 POKE USR "b"+6,BIN 01010010
8280 POKE USR "b"+7,BIN 10001100
9010 REM **** BILLBOARD Section *********
9020 INK A: PAPER VAL "4": BORDER VAL "4": CLS
9030 FOR I=A TO VAL "21"
9040 PRINT PAPER VAL "7";"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA":REM ( These are GRAPHIC A's)
9050 NEXT I
9060 PLOT A,A: DRAW A,VAL "175": DRAW VAL "255",A: DRAW A,VAL "-175": DRAW VAL "-254",A: DRAW A,VAL "174": DRAW VAL "253",A: DRAW A,VAL "-173": DRAW VAL "-252",A: DRAW A,VAL "174"
9070 LET I=A
9080 LET I=I+D: IF I>=K THEN LET I=D
9090 GO SUB VAL "700": GO SUB VAL "800"
9110 REM **** INPUT Section ***
9130 LET I$=INKEY$: IF I$="" THEN GO TO VAL "9130"
9140 BEEP .03,34.4
9150 IF I$="A" OR I$="+" THEN GO TO VAL "1000"
9160 IF I$="D" OR I$="7" OR I$="0" OR I$="-" THEN GO TO VAL "2000"
9170 IF I$="M" OR I$="6" THEN GO TO VAL "3000"
9180 IF I$="P" OR I$="Z" THEN COPY
9190 IF I$="C" OR I$="K" OR I$="L" OR I$="V" THEN GO TO VAL "4000"
9210 IF I$="S" THEN GO TO VAL "9990"
9220 IF I$="B" OR I$="5" THEN GO TO VAL "9300"
9230 IF I$="H" OR I$="?" THEN GO TO VAL "5000"
9240 IF I$="E" OR I$="Q" THEN GO TO VAL "9997"
9250 IF I$<>"F" AND I$<>"N" AND I$<>"8" THEN GO TO VAL "9130"
9260 GO TO VAL "9080"
9320 LET I=I-D: IF I<D THEN LET I=K-D
9330 GO TO VAL "9090"
9991 REM **** SAVE Section *****
9992 BEEP .15,5
9993 PRINT #VAL "4": SAVE "DISKS.B1" LINE 8E3
9994 BEEP .042,50: PAUSE 2.8: BEEP .042,50
9995 POKE VAL "23659",A: PRINT AT VAL "22",A; PAPER VAL "4";'" Now preforming CRC ": POKE VAL "23659",E: PRINT AT A,A;
9996 PRINT #VAL "4": VERIFY ""
9997 BEEP .042,50: PAUSE 2.8: BEEP .042,50
9998 PRINT #VAL "4": LOAD "L.B1"

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