Have you ever noticed what a ZX81 program sounds like near the end? There are 25 bursts of noise with periods of steady tone in between. The reason for this is the manner in which the ROM saves the programs-it copies almost the entire RAM up to the system variable E-LINE. Therefore, the last major item to be saved is the Display File (D-File), consisting of 25 Newlines (the noise) separated by 24 lines of 32 spaces (the steady tone). This is always so because the ZX81 clears the screen before performing any command, including the SAVE.
All these spaces are, of course, completely redundant as far as the program is concerned. A simple way to eliminate them is by adding the following lines to your program:
9996 FOR I=1 TO 24
9997 SCROLL
9998 NEXT I
9999 SAVE "program name"
To save, type FAST, N/L, RUN 9996, start the tape recorder recording and hit Newline. The reason that the display file seems to disappear is the SCROLL’s command operation. When the ROM executes this statement, it clears the bottom line of spaces. This line is truly empty, consisting of only a Newline character without the normal row of spaces. Doing this 24 times empties the whole screen, and the SAVE command in the program executes without first ‘clearing’ the screen full of spaces again. The FAST statement eliminates the boring wait for the ROM to refill the screen.
This technique is most useful in short programs, as it reduces the loading time by about 10 seconds. In programs approaching 16K in length, 10 seconds makes little difference in 5 or 6 minutes. Of course, this technique will not work with an unexpanded ZX81 or TS1000, because the ROM already performs the screen-emptying as a matter of course to conserve memory. I do not know exactly how QSAVE and the other fastload programs in the library work, and this technique may not be compatible with them.
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.