Commodore VIC-20 User Manual page 128

Hide thumbs Also See for VIC-20:
Table of Contents

Advertisement

no way of checking that there is already a program on that spot, so be
careful with your tapes. If you type the SAVE command followed by a
name in quotes or a string variable name, the VIC will give the pro
gram that name, so it may be more easily located and retrieved in the
future. The name may be foflowed by a comma (after the quotes) and
a number or numeric variable. This number tells the VIC which device
on which to store the program. Device number 1 is the tape drive, and
#8 is the disk. After the number there can be a comma and a second
number, which is either 0 or 1. If the second number is 1, the VIC will
put an END-OFTAPE marker after your program. If you are trying to
LOAD a program and the VIC finds one of these markers you will oe!
a FILE NOT FOUND ERROR.
c
EXAMPLE:
SAVE
SAVE-HELLO"
SAVE AS
SAVE "HELLO",8
Stores program to tape without a name.
Stores on tape with the name HELLO.
Stores on tape with name in variable A$.
Stores on disk with name HELLO
SAVE "HELLO11,-!,!
Stores on tape with name HELLO and follows
program with an END-OF-TAPE marker.
(
VERIFY
This command causes the VIC to check the program on tape or disk
against the one in memory. This is proof that the program you just
SAVEd is really saved, in case your tape is bad or something isn't
working. This command is also very useful for positioning a tape so
that the VIC will write after the last program on the tape. All you do is
tell the VIC to VERIFY the name of the last program on the tape. It will
do so, and tell you that the programs don't match (which you already
knew). Now the tape is where you want it, and you can store the next
program without any fear of erasing an old one.
VERIFY without anything after the command causes the VIC to check
the next program on tape, regardless of its name, against the program
now in memory. VERIFY followed by a program name (in quotes) or a
string variable will search the tape for that program and then check.
VERIFY followed by a name and a comma and a number will check
the program on the device with that number (1 for tape, 8 for disk).
EXAMPLE:
VERIFY
Checks the next program on the tape.
VERIFY "HELLO"
Searches for HELLO, checks against memory.
VERIFY "HELLO",8
Searches for HELLO on disk, then checks.
118
<
<
c
(
c
c
c
c
c
«

Advertisement

Table of Contents
loading

Table of Contents