I got a “letter to the editor” last month that remarked that my review of Fastload looked like it had been written in a hurry. He was right – I was in the middle of classes, but I wanted to let people know about Fastload. The following should help to fill in the gaps I left in my last review.
Fastload is one of a group of utility programs that have been developed to eliminate one of the Timex’s biggest problems – its slow LOAD and SAVE times. Two other programs (among several ) that do the same job are Z-XLR8 and Q-Save. Z-XLR8 seems to have many of the features of Fastload, but I haven’t seen it in operation. I have seen Q-Save in operation. It does LOAD and SAVE fast, but it requires an added filter on the line and will not LOAD or SAVE data only, as both Fastload and Z-XLR8 will.
Both Fastload and Z-XLR8 offer:
- High speed operation
- Program SAVE and LOAD
- Dimensioned string (A$(xxx)) SAVE LOAD
- Dimensioned Numeric SAVE LOAD
- Catalog function
- Your choice of code locations
- Your choice of SAVE speeds
The Fastload tape comes with five programs on it. There are versions of Fastload, named Monitor, to reside above RAMtop (31512 – 32767) and below the system variables (8192 – 9461). A third bare-bones version is called the “bootstrap loader”. It is intended to be spliced onto the front of your programs. This allows the fast loading of your programs without requiring the separate loading of Fastload first. (Incredibly, this feature isn’t used for the Monitor program. Fastload takes 1 min., 35 sec. to load – if the bootstrap were used, it would only take 23 seconds.) The remaining programs on the tape are demonstrations of Fastload’s speed.
Upon LOADing “Monitor”, you will be watching a user-friendly BASIC routine, that will help you LOAD Fastload-saved programs. In fact, it also isolates you from practicing with the commands. Fastload is really a machine code program. When you touch the ENTER key, the code is trasferred to the area in RAM where it will operate from. As it transfers the code, it destroys the source code. It gets its commands by searching the variables area for a particular dimensioned variable -T$(24). Therefore, to use Fastload, once it’s loaded,there are three steps:
1) Establish T$ with DIM T$(24)
2) Set up T$ with the command you wish to give Fastload, such as LET T$=”U”. Programs are SAVEd and LOADed by starting T$ with three prefixes: inverse P(space) to SAVE, P(space) to LOAD, or U to load the next program. This action is similar to the Timex’ LOAD “”, but it will not crash if it starts in the middle of a program.
3) Invoke Fastload, using a USR call – either PRINT USR 8192 or PRINT USR 32685.
These steps can be included as program lines, allowing programs to auto-run when they are next loaded. Some of the steps involved will be discussed below.
Chaining Fastload
It is possible to chain the bootstrap loader ahead of Fastload, which is ahead of your object program. As with any time two programs are blended together, you must have a clear idea of what each program’s requirements are. Fastload needs 1200 bytes, either at 31512 or 8192. In addition, there must be a T$ that has been DIMmed to 24.
Following the directions on the bootstrap loader, record a copy of the loader on your future program tape. Set it aside. Reset the machine, and load the Monitor. It is necessary to have a copy of Fastload in the proper place in memory before you attempt to SAVE a program with it. If you intend to chain Fastload onto the tape, LOAD a second copy from the source tape (using the Timex’s LOAD), and press BREAK (the original copy will have destroyed itself as it moved the code). Now let T$=” P Fastload”, and change line 60 to 60 PRINT USR M. Reinsert the future program tape and GOTO 1. You will now be able to write your own prompt screen. When you press ENTER with nothing but the cursor between quotes, the program and screen will be fastsaved.
If you don’t feel the need for the “user-friendly” feature, you can make Fastload load your program immediately. Add lines:
100 RAND USR P
460 RAND USR Z
470 LET T$="+"
480 RAND USR P
550 LET T$="[P](program name)"
600 RAND USR P
And remove the rest. (The variabes alrady are in the program.) Now make sure that T$=”[P] Fastload”, and GOTO 60. Fastload will SAVE, and immediately look for your program. Press BREAK, and remove the tape.
Now is the time to set RAMtop, if you need a special value. Then LOAD your object program normally, DIM T$(24), LET T$=[P]program name”, and replace the SAVE line in your program with RAND USR 32685 (or 8192). Replace the bootstrapped tape, then GOTO that line, and the program will be fast saved. When the tape is run, the bootstrap will go in using a standard load. then fastload Fastload, which in turn will either wait for your input or automatically load your program.
A Special Case
In trying to blend TFO with Fastload I ran into a problem. TFO also uses T$, but its T$ is DIMmed to 32. Dr. Pearson anticipated this, but I couldn’t add a different command string, due to the workings of TFO. Instead, I went into the code, and changed Fastload’s check that T$=24 to a check that T$>=24. I then went to the Monitor program and changed the corresponding byte in the source array, then chained the program in the usual way. The result is a TFO that automatically sets RAMtop to the maximum and loads in one minute. I expect that a fully filled TFO will SAVE in six minutes, rather than 25. Call me for more info on this application.
SAVEing Arrays
The biggest savings in time occurs when you use Fastload to SAVE data only – an 8K text file from WSII SAVEs in 30 seconds. There are four new prefixes for T$ to load arrays:N – array letter, inverse N – array letter for numeric arrays, $ – array letter and inverse $- array letter for string arrays. It’s possible to save from A$ and load the result back into B$. What’s more, they don’t even have to be the same size – if it’s too long, the excess is dropped, if it’s too short the rest of the array is left alone. As with the auto-starting programs, it is possible to incorporate the lines that set the values of T$ up in your program, and SAVE or LOAD data from within the program. An example of that was given in the April newsletter.
And More…..
There is one more feature to Fastload – its reports. Upon RETurn from the machine code, you will be able to see how the SAVE went or to verify the contents of the tape. You may have noticed that I specified PRINT USR 8192 rather than the usual RAND USR 8192. The Print allows you to inspect these results. By setting T$=”C”, PRINT USR 8192 and playing the tape will return a report on the quality of the code on the tape. If there is some interest shown in this. I’ll present some ideas on how to write a program to take advantage of these reports.
Mark Fisher
SPECTRUM EMULATOR FOR TS 2068
CATS MEMBERS IN GOOD STANDING MAY BE ABLE TO OBTAIN AN EMULATOR VERY SHORTLY. WE HAVE MADE ARRANGEMENTS TO OBTAIN THESE EPROM BOARDS FROM ITS MANUFACTURING FACILITY. THE BOARDS WILL BE IN SHORT SUPPLY FOR AWHILE DUE TO A SHORTAGE OF THE EPROM CHIPS. ANYONE WHO IS INTERESTED MAY ORDER THE EPROM THROUGH GESANG ASSOCIATES. EACH ORDER MUST BE ACCOMPANIED BY A DEPOSIT OF $30 OF WHICH $20 IS NONEREFUNDABLE. THE TOTAL COST WILL BE BETWEEN $79.95 AND $89.95. THE DELIVERY TIME IS AT LEAST 6 WEEKS. MORE NEWS WILL BE GIVEN AT THE JULY MEETING. IN ADDITION A FULLER DISCUSSION IN THE AUGUST CATS NEWSLETTER. YOU MUST BE A CATS MEMBER TO ORDER