EasyManua.ls Logo

Commodore VIC-20 - Page 379

Commodore VIC-20
404 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix
G:
BASIC
Statements 365
RUN
. RUN begins execution
of
the program currently stored in memory.
RUN closes any open files and initializes all variables to 0 or null values.
Format:
RUN[/ine]
When RUN
is
executed in immediate mode, the computer performs a
CLR
of
all program variables and resets the data pointer in memory to the
beginning
of
data (see RESTORE) before executing the program.
If
RUN specifies a line number, the computer still performs the CLR
and RESTOREs the data, but execution begins at the specified line number.
RUN specifying a line number should not be used following a program
break - use CONT
or
GOTO for that purpose.
R UN may also be used in program mode. It restarts program execution
from the beginning
of
the program with all variables cleared and data
pointers reinitialized.
Example:
RUN
Initialize
and
begin execution
of
the current program
RUN
1000
Initialize
and
begin execution
of
the program starting at line 1000
SAVE
The SAVE statement writes a copy
of
the current program from
memory to an external device.
Cassette
Unn
Format
SAVE [':file name
j[,dev
][,sa]
The SAVE statement writes the program that
is
currently in memory to
the tape cassette drive specified by
dev.
If
the dev parameter
is
not present,
the assumed value
is
1 and the primary cassette drive
is
selected.
Thefile
name, if specified,
is
written at the beginning of the program.
If
a nonzero
secondary address
(sa)
is
specified, an end-of-file mark
is
written on the
cassette after the saved program.
Although no SAVE statement parameters are required when writing to
a cassette drive, it
is
a good idea to name all programs. A named program
can be read off cassette tape either by its name
or
by its location on the

Other manuals for Commodore VIC-20

Related product manuals