Back-ups for VU-FILE

See all articles from CATS v3 n4
Author(s): Ward Seguin
Publication: CATS Newsletter
Pub Details: CATS v3 n4 (Volume 3, Issue 4)
Date: July 1985
Pages: 6, 16

If you have ever attempted to make a back-up copy of some of the TS software such as “VU-FILE” or “VU-CALC” using the SAVE program function, you soon found out it doesn’t work. The reason, the bulk of the program is in machine code. But it can be done and Appendix E of the 2068 manual gives a clue as to how to do it. It is not obvious so let me tell you what I’ve learned.

First I’ll list the steps and then explain a couple of points. Even if you don’t understand my explanation, you should be able to duplicate my steps.

1. Type in: MERGE “vfile”
2. Start the VU-FILE tape and press ENTER
3. Stop the tape as soon as you see OK on the screen.
4. Display the BASIC program by pressing: ENTER

  50 BORDER 1: PAPER 1: INK 1: C
LEAR 28287: LOAD ""SCREEN$ : LOA
D ""CODE
100 INK 7: DIM f$(32): LET a=28
291: GO TO USR 28288
1000 CLS : PRINT "Save a file":
GO SUB 6000: GO TO USR a
1005 SAVE g$CODE s,l: PRINT "Pre
ss V to VERIFY "'"or any other k
ey to continue."
1010 IF INKEY$="" THEN GO TO 101
0
1020 IF INKEY$<>"V" AND INKEY$<>
"v" THEN GO TO 1200
1100 GO SUB 7000: VERIFY g$CODE
1200 GO TO USR a
2000 CLS : PRINT "Load a file":
GO SUB 6000: GO SUB 7000: LOAD g
$CODE s: GO TO USR a
3000 LPRINT f$( TO 32): GO TO US
R a
6000 INPUT "Enter file name: ";
LINE g$: LET f$( TO 10)=g$: LET
s=CODE f$(11)+256*CODE f$(12): L
ET l=CODE f$(13)+256*CODE f$(14)
: RETURN
7000 PRINT '"If the program stop
s executing and returns to BASI
C with an error code then ent
er:"''"GO TO USR a"''"to get bac
k into VU-FILE.": RETURN

5. Edit line 50 by deleting LOAD “SCREEN”:
6. Start the cassette again and enter: RUN ENTER
7. Stop the tape when the VU-FILE menu appears on the screen.
8. Now save the program on a blank cassette. Type in: SAVE “vfile” LINE 50
9. As soon as OK appears stop the tape.
10. Type in: SAVE “xxxx” CODE 28288, 37080
11. Hit: ENTER and start the tape
12. Stop the tape when OK appears. The program file should be on your back-up cassette. Delete the program from memory and try reading it off your back-up tape.

There are three modules in the VU-FILE (and likewise in VU-CALC) program. The first is a basic program module which initializes some of the variables; but most important, it instructs the machine to read in the next two machine code modules. The first is the screen display which you see when the second machine code module is being loaded. It’s neat but you don’t need the screen display for tape back-up purposes. Therefore, step 5 above deletes the screen display module. The second machine code module is the functional part of the program that performs what the program is advertised to do.

At the completion of Step 7, you have the entire program in the machine except for the screen display. Steps 8-11 save the program on your back-up tape, first the basic code and then the machine code. Step 8 saves the program so that the basic code automatically starts with line 10 (for VU-FILE) when the program is loaded from the back-up tape.

Step 10 saves the machine code, all 37080 bytes, starting with address 28288. The machine code module may not be 37080 bytes long but lacking knowledge of how big the program is, I calculated this number. I knew RAMTOP is normally 65367 (see page 268 of the manual) and I knew the basic program loaded the machine code starting with address 28288 because statement 50 of the basic program says CLEAR 28287. The difference between these numbers is 37080. If you know how big the machine code module is in bytes, use that number. If it is much smaller than 37080, it will reduce your loading time considerably.

Read over appendix E of the manual if you want additional information. I also want to thank Mark Fischer for his helpfulness and patience in answering my questions on this subject.

Ward Seguin

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.