Commodore VIC-20 User Manual page 127

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

Advertisement

EXAMPLES:
LOAD
Reads in the next program on tape
LOAD "HELLO"
Searches tape for program called HELLO, and
loads if found.
LOAD A$
Looks for a program whose name is in the
variable called A$.
LOAD "HELLO",8
Looks for the program called HELLO on the disk
drive.
L0AD"*'\8
Looks for the first program on the disk.
The LOAD command can be used within a BASIC program to find and
RUN the next program on a tape.
NEW
This command erases the entire program in memory, and also clears
out any variables that may have been used. Unless the program was
previously stored somewhere, it is lost until you type it in again. BE
CAREFUL when you use this command!
The NEW command can also be used as a statement in a BASIC pro
gram. When the VIC gets to this line, the program is erased and every
thing stops. It is useful if you want to leave everything neat when the
program is done.
RUN
Once a program has been typed into memory or LOADed, the RUN
command is used to make it start working. If there is no number
following the command RUN, the computer will start with the lowest
numbered program line. If there is a number, that becomes the line
number where the program starts from.
EXAMPLES:
RUN
Starts program working from lowest line number.
RUN 100
Starts program at line 100.
RUN X
UNDEFINED STATEMENT ERROR {you must always type
RUN by itself or with a line number - not with a letter).
SAVE
This command will store a program currently in memory on a cassette
tape or disk. If you just type the word SAVE and hit return, the
machine will attempt to store the program on the cassette tape. It has
117

Advertisement

Table of Contents
loading

Table of Contents