Loading/Saving Programs

Publication: LISTing Newsletter
Date: Summer 1990
Pages: 8

8K ROM

SAVING. Keep the tape-computer connector always plugged into the EAR and MIC receptacles of the computer. However at the tape recorder end only keep the one connected which you are using. Let us say the last line of your program is 1000 SAVE “SHOOTIST” . Then press LIST 1000 and ENTER. Then hit SHIFT 1 (for EDIT). When line 1000 appears at bottom screen DELETE (SHIFT 0) the 1000. Move the tape to the position you want it. Then voice record the word SHOOTIST three times and immediately stop the tape. Set the tape volume to level which saves best. Start recording and immediately press ENTER. The computer can be close to the TV but the tape recorder must be maximally (connector at full stretch) remote from the TV and computer. Only the MIC side of the connector is plugged into the tape recorder. You can have the TV sound up a bit as you record. If you have a long 16K program saving you can do other things and when the buzzing sound stops and there is a 0/0 report bottom screen stop the tape and you have saved a program. Note the start and stop tape position and mark them in a catalog together with the SAVE title. Replay some of the tape to make sure you hear the shrill buzz of program (MIC plug pulled out).

LOADING. LOAD in FAST mode. Type in the command LOAD “SHOOTIST” . Locate your program on the tape from your catalog. After you hear the title (it should be three times) there is a faint buzz. In a few seconds there is total silence. Stop the tape at the beginning of the silence. Plug into the tape the EAR side of the connector. Leave the MIC plug not connected to the tape. Adjust tape volume to the known proper level. Push the tape PLAY switch and immediately press ENTER on the ZX. Have the TV sound up a bit and when the buzz stops and there is the 0/0 report bottom screen stop the tape and you have loaded the computer.

SAVING FAILS. Check to see the tape volume is high enough. Check to see that you are using the MIC connector. Is the MIC plug in the right receptacle? Is the tape remote from the TV and ZX? Reset the voice title and SAVE again…it should work after all these checks.

LOADING FAILS. Do the above checks and also put the computer end of the connectors in and out a couple of times to shine the contacts. If you have a 16K RAM pack put it on and off twice to shine contacts. Sometimes the tape is stretched or glitchedin other ways. Programs should always be saved twice. Do not load or save on metal tables.

CONNECTOR. The ZX comes with an 18 inch tape-ZX connector. The older ones had screw in tips which break after much use. The later deliveries are with unitary plastic tips and are more durable. In persisent failures check connector for breaks (this happened to one of our older models).

SAVING SCREEN DISPLAYS.

10 PRINT "THIS DISPLAY WILL ERASE WHEN YOU HIT SAVE ""TEST"""
20 SAVE "TEST"
10 INPUT A$
20 PRINT "THIS DISPLAY WILL NOT ERASE WHEN YOU HIT SAVE"
30 IF INKEY$="S" THEN SAVE A$
40 GOTO 30

The left program is the regular way of saving. Try it and see that the screen display is lost when saving is finished. RUN the right program. INPUT any string (any set of one or more characters) and hit ENTER. Press SAVE and notice after the saving the display remains on screen. IT will be saved. Remember you need the 30-40 continuing loop to make line 30 work from the keyboard. The double quotation marks are SHIFT Q.

FREQUENT SAVES. When composing or entering a long program SAVE after every 50 or 60 lines to avoid unfortunate losses from wipeouts (crashes).

PAUSE CAVEAT. With ZX80/8K ROM or ZX81 FAST mode right after a PAUSE line you need a POKE 16437,255 line or crash happens in a few minutes.

VARIABLES AND ARRAYS. In a long program with large arrays and many variables (all these arise from LET statements) saving is prolonged because these items too are saved. Press CLEAR and ENTER before you save and all thse will be cleared away shortening saving time. A shorter program has less chance to be glitched. If you want to save these items because they would be hard to regain or type in then do this: For the second last line of the program insert a REM statement (the last line is the SAVE line). Before you save hit LIST (REM line number) and ENTER. Then SAVE program. Later when loading this program hit ENTER and the last two lines will appear on screen. The REM line should be something like 990 GOTO 100 TO PRSRV VARBLS . RUNning a program wipes out all variables. You use a GOTO statement to preserve them and the GOTO number must be past all the DIM and LET X=0 type statements or there will be clearances. The REM line reminds you not to RUN when you first load the program.

LARGE TO SMALL. You cannot LOAD a small program SAVED from a 16K ZX into a 1K ZX. You can from 1K to 16K. Large to small no, small to large yes.

COMMONEST CRASHES: jiggling transformer jack or RAM Pack.

SPEED TIP: In loading type LOAD “” and next program on tape will LOAD.