SAVE
EXAMPLES:
RUN
RUN 100
RUN"PRG1"
RUN(A$)
Starts execution from the beginning of the
program.
Starts program execution at line 100.
DLOADS "PRGV from disk drive 8, and
runs it.
DLOADs the program named in the variable
A$.
—Store the program in memory to disk or tape
SAVE ["filename"][,device number[,EOT flag]]
This command stores a program currently in memory onto a cas
sette tape or disk. If the word SAVE is typed alone followed by
RETURN, the Commodore 128 assumes that the program is to be
stored on cassette tape. It has no way of checking if there is already
a program on the tape in that location, so make sure you do not
record over valuable information on your tape. If SAVE is followed by
a filename in quotes or a string variable name, the Commodore 128
gives the program that name, so it may be located easily and
retrieved in the future. If a device number is specified for the SAVE,
follow the name with a comma (after the quotes) and a number or
numeric variable. Device number 1 is the tape drive, and number 8 is
the disk drive. After the device number for tapes is an optional num
ber called the secondary address. The following table shows some
possible values for the secondary address.
Secondary Address
Function
u
C
u
u
This value tells the C128 not to relocate
this program in memory when it is loaded
later.
This value tells the tape drive to put an
EOT (end of tape) marker after the pro
gram. If, in trying to LOAD a program, the
Commodore 128 finds one of these mark
ers, rather than loading the program, a
FILE NOT FOUND ERROR is reported.
This value does both the above functions.
v—
298
BASIC 7.0 ENCYCLOPEDIA—Basic Commands and Statements
Need help?
Do you have a question about the 128D and is the answer not in the manual?
Questions and answers