Tm Tandy Corporation Free Copy Of Warranty Upon Request

MICRO MANAGEMENT SYSTEMS, INC.

DEPT. NO. 5 115C SECOND AVE. S.W. CAIRO, GA. 31728 GA. 912-377-7120

Circle # 18

An automatic tape SAVE program

For Models I/III, tape only Level II 4K and up

Jon Presley, Lebanon, MO

Have you ever tried to verify a program that took three hours to type and save on cassette? How many times have you attempted to verify a program using the CLOAD? command, and have the program disappear because the ENTER key was depressed instead of a question mark? What can you do if the original tape copy proves defective? These are questions concerning everyone operating a cassette based microcomputer.

AUTOSAVE might be the answer. It may be stored at the end of your existing program and help efficiently transfer programs on cassette. This auto save routine eases the storage process and helps eliminate mistakes.

SHORT is a compressed program with most prompts and needless elements deleted. Simply type LISTING 1 into your computer and then save it on cassette. Always load this program prior to a programming session. When the session is complete, type "RUN 65000" and two copies of your program will automatically be saved on cassette (be certain the recorder is set up for recording). SHORT uses about 220 bytes during run time and will fit at the end of almost any program.

LONG is expanded and more elegant. It is designed for use by an inexperienced operator and uses slightly more memory. Extra prompts and instructions are included to serve as a guide for correctly saving and checking two programs. An INKEY routine is included that will allow you to stop the program if it is accidentally entered or if you wish to stop execution. LONG is initiated by typing "RUN 65000". It uses about 1113 bytes of memory during run time. (See Listing 2.)

AUTOSAVE is easy to use. First, type either LONG or SHORT into memory and then save it on tape for future use. Next, type a small demonstration program ahead of Auto Load. Type

"RUN 65000" and follow the video prompts.

When using these programs a few simple procedures will aid production of cassette files. Your program must have line numbers lower than 65000 and contain an END statement. This keeps the computer from crashing into the save routine. If you already have an existing program in memory and want to add AUTOSAVE or, alternately, if AUTOSAVE is in memory and you want to add another program, then use a chaining program,.

Be aware that when short programs (under 5000 bytes) are saved or checked, there usually is little trouble if the system is working correctly. The risk of error in longer programs increases in proportion to the length. A 16,000 byte program is almost impossible to save without an error unless you are using a new certified digital tape. Who can afford certified tapes?

It is essential that the cassette player is clean and that you use good operating habits. Clean the capstan and the two heads of the tape player at least once each week. Use good quality tape and shop around for the best price. At present, fine quality C-10 tapes may be purchased for about 70 cents apiece.

When a CSAVE is performed, double-check that both the play and record buttons have been depressed. I have tried to record a few tapes in the past with only the play button pressed. It does not work! Keep the tape recorder turned off when not in use. If left in the play or record mode, a strain is placed on the tape and a deformity may occur which could cause bit information to be lost. If this happens to your tape, throw it away!

Stop the recorder immediately after rewinding or rapidly advancing a tape. Otherwise, the entire tape will eventually stretch. A 30 minute tape might be converted to one with 45 minutes of playing time. This is not a recommended way to add to your library. ■

Listing 1

65000 INPUT "READY RECORDER"; Z : FOR I = 1 TO 2 : PRINT "NOW LOADING" : CSA

VE ";I;" : OUT 255, 4 : FOR J = 1 TO 600 : NEXT J : OUT 255, 16 : NEXT I : PRINT "NOW COMPLETE" : INPUT "PRESS 1 AND ENTER TO CHECK"; R : IF R = 1 T HEN PRINT

65001 CLOAD PRINT

Listing 2

65000 CLS : PRINT "TAPE LOAD I N G ROUTINE:": PRINT

65001 CLS : INPUT "WHAT IS THE PROGRAM I.D. LETTER"; Z$ : PRINT "READY THE R ECORDER BY PRESSING PLAY AND RECORD 0 N THE RECORDER

RESET AND NOTE COUNTER NUMBER" : GOSUB 65011

65002 FOR I = 1 TO 2 : CLS : PRINT "NOW LOADING "; Z$; I : CSAVE # - 1, Z$ : OUT 255, 4 : FOR J = 1 TO 600 : NEXT J : OUT 255, 16 : NEXT I

65003 PRINT "2 PROGRAMS ARE NOW RECORDE D

TO CHECK " : GOSUB 65011

65004 CLS : PRINT "REWIND RECORDER TO S TART OF PROGRAMS

IF AT ANY TIME 'BAD1 IS DISPLAYED NEW P

ROGRAMS MUST BE RECORDED AND YOU MUST TYPE 'RUN 65001" AND START OVER" : GOSUB 65011

65007 PRINT "NOW CHECKING "; X : IF X = 1 THEN 65008 ELSE PRINT "TYPE "RUN 6

50091 WHEN 'READY1 IS PRINTED" : C LO AD PRINT

65008 PRINT "AFTER COMPUTER STATES 'REA DY' TYPE 'RUN 65006'" : CLOAD PRINT

65009 PRINT "CHECKING IS COMPLETE

0 0

Post a comment