Using ZXLR8 for File Handling

Author(s): Steven Kaye
Publication: LISTing Newsletter
Date: December 1985
Pages: 3

It arrived almost unnoticed, yet it is the answer for anyone seeking a low cost, file handling operating system for small-scale computer applications.”IT” is ZXLR8, a software package that gives your old ts/1000 the convenience of fast loading and file handling capabilities similar to expensive disc drive systems.

Yet, ZXLR8 is not without its faults, in fact. it was one of the faults that introduced me to this great operating system. When purchased as software on tape, the program does not seem compatible with all tape recorders. I was originally given the program by a friend who purchased it and found it impossible to get it working. He was not able to get it calibrated to work with his computer cassette recorder. My friend was sure that it would not work with my “garbage” tape recorder which would not load Q-SAVE programs. When I tried initially to calibrate the program I also encountered difficulty. After much time and trial and error experimentation I discovered the correct calibration settings simply by trying values recommended in the documentation booklet. Surprisingly it worked. Even though it was quite a pain loading the ZXLR8 tape and then playing with the loading/saving of programs,I was hooked by it. Not only did it provide loading/saving at warp speed, it also gave me a checksum that informed me that I had good loads. But this was still only the tip of the iceberg. After playing with ZXLR8 for several weeks, my friend “burned” it onto an EPROM which was placed in the John Oliger 8K Eprom read board. Only later did I learn that the program is now available already on an EPROM, and it contains an enhancement that makes it even more valuable.

With ZXLR8 under the hood, my computer became a new machine. My first real application was the transfer of my large student database program to this new system. Prior to using ZXLR8 it would take over 12 minutes to load the entire database. I never minded this delay because once the program was up and running it would save me hours of annoying clerical work. Anyway, I could always spend the loading time looking into the refrigerator deciding what to take as a snack while doing my work. Now the program loads quickly although it deprives me of my snacks. While it is convenient, the quickload feature is only a small part of ZXLR8. The program also gives you a function which is similar to the disc “catalogue” function. It scans the tape and gives you, on screen,a listing of the files contained on the tape as well as information on file type and length.

The real magic of ZXLR8 is its file handling capability. It is possible to take data from a program, save it on tape independent of the program, and load it into another, completely different program. There are four different types of files that can be stored, each using a specific new command. The command GS or “graphics save” saves the display on your TV or monitor screen. DS is the “data save” which allows you to save anything stored within a specific numeric or string array. BS is the command for “binary save” and it allows you to save any number of contiguous bits that are stored in memory. HS is the “high resolution graphics save” which stores data from memory location 8192-14335. The area of memory utilized by Advanced Interface Designs high resolution graphics board.

My primary use of the file handling capability is the movement of large quantities of data stored in string arrays, from one program to another. I have recently used the file handling capability to transfer the list of student names and homeroom classes from the database to my gradebook program, a variation of the one that appreaed in SYNC several years ago.

To perform this operation, I would first load the database. Then I would break the program and enter the RAND USR call to call ZXLR8. The computer then requests a filename. I enter the filename “names” then enter the command DS. The computer then requests the name of the array in which the data is stored. Then the computer instructs you to start the tape recorder and you save “names” to tape at a speed which several years ago would have been considered impossible on this “pokey little” computer. Following this operation. I would “new” the computer, load the gradebook program and run it to initialize the variables. When I first tried to transfer data I failed to initialize the variables and found that it was impossible to get the data to load. After the second program is set, you call ZXLR8 again and instruct it to DL “data load”. The computer requests the array name. You must give it the name of the array into which you wish to load the data. The two arrays can contain different letters but the second array must be large enough to accomodate the incoming data. As an example, my student name list is C$(150,22). I saved the data as an array named “names” and loaded it into an array within the second program named A$(150,22).

The only limitation which I have discovered in using this type of data transfer is that it limits you to moving a single array at a time. The convenient string handling capabilities of our computers allow us, however, to combine files from several different arrays into a new string array which is suitable for saving. As an example, if I wish to transfer both student names and homeroom classes from the database to the gradebook, I would simply write a short basic routine within my database that would create a new array that contains the desired information. This example shows how I can combine the data from 2 different arrays and permit ZXLR8 to transfer both files simultaneously using the data save/load functions that were discussed previously.

500  DIM O$(250,26)
510 FOR I=1 TO 250
520 LET O$ (I)=C$(I)+R$(I,3 TO 6)
530 NEXT I

In this example, the student names are stored in C$ and the homeroom information is part of the data stored in R$, residing in the 3rd to 6th spaces of the array.

Once the data is tranferred to the new program, it can be kept in this configuration or read into two arrays using a variation of the subroutine listed above.

In future articles I am planning to elaborate on some of the other file handling techniques and features offered by this tape based operating system.

ZXLR8 is available from Russell Electronics and is an excellent investment for anyone planning to use their Timex computer for serious data handling applications.

Russell Electronics
R.D.1, Box 539
Centre Hall, Penna. 16828

Available on EPROM for $21.00 or on tape. Write for information. YOU MUST TRY IT TO BELIEVE IT, ANYHOW IT IS MUCH LESS COSTLY THAN A DISC SYSTEM.