Example:
L.OAD
LOAD
'"',2
LOAD
"EOOR"
N.-"WHEEILS"
LOAD
N.
LOFID
"X"
Appendix
G:
BASIC
Statements
355
Load into memory the next program
found
on cassette
unit
#1·lfyou
start a
LOAD
when the cassette
is
in
the middle
of
a program, the cassette will read past the
remainder
of
the current program, then load the next
program
Load into memory the next program
found
on cassette
unit
#2
Searchfor the program named EGOR on tape cassette
#1
and load it into memory
Search for the program named WHEE!LS on cassette
unit
#1
and
load it into memory
Searchfor a program named X on cassette unit
#1
and
load
it
into memory
DlskeHe
Drive
Program
Format
LOAD "dr:file name",dev
The LOAD statement loads into computer memory the program file
with the
file name
on
thediskette in drive dev. The device number for the
diskette drive unit
is
8 in the VIC 20.
If
dev
is
not
present, the default value
is
I, which selects the primary tape cassette unit.
A single asterisk can be included instead
of
the file name, in which case
the first program found on the selected diskette drive
is
loaded into memory.
Example:
LORD"e:
*"
, 8 Load the first program
found
on disk drive 0
LOAD"e:
FIREBALL",B
Searchfor the program named
FIREBALL
on disk
drive 0 and load
it
into memory
T.-"0:METEOR"
Searchfor the program named
METEOR
on disk
LOFID
TS,B
drive 0 and load
it
into memory
When a LOAD
is
executed in immediate mode, VIC BASIC automati-
cally executes
CLR
before the program
is
loaded. Once a program has been
loaded into memory, it can be listed, updated,
or
executed.
The
LOAD
statement can also be used in program mode to build
program overlays. A LOAD statement executed from within a program
causes that program's execution to stop and another program to be loaded.
In this case the VIC computer does not perform a CLR; therefore, the old
program can pass on all
of
its variable values to the new program.