Atari DOS 2.5: XF551 Owner's Manual page 74

Atari dos 2.5 disk drive
Table of Contents

Advertisement

1.
LOAD your program (see LOAD below).
2. LIST it to disk (see LIST below).
3.
Type
NEW
[ReWTl
).
4.
ENTER
your program from disk (see ENTER). The symbol
table now contai ns only those
variable
names present in the
program
.
LOAD (LO.)
Format:
LOAD
filespec
Example:
LOAD
"01:
DO:::EX
.
BAS
"
[
Rettrn
)
This command is used to load a file from a particular diskette in a
disk drive into the
user
program RAM area. Before you can use
Ihis
command
to load a file called
DOSEX.BAS,
the file (DOSEX-
.BAS) must have
been
previously saved using the BASIC
com-
mand
SAVE.
This command loads only a lokenized version
of
a
program
.
This
command can
also be used in
"
chaining
"
programs
.
If a
program
is
too big to
run
in
your available RAM
,
you
can
use the
LOAD
command
to spread the program across two files. Simply
type the LOAD
statement
as the last line
of
the
first
program file
,
as shown in the example following this
paragraph.
When the
program encounters the LOAD
statement,
il
will automatically
read in the next part of the program from the
disket
le.
The sec-
ond program file must be able
1
0
stand alone without depending
on any variables
or
data
in RAM
from the first program file
.
The
loaded program will
not
execute until you type
RUN
and
press
[Rew-n ),
at which lime the previous program and any variables will
be
cleared
(see RUN
for
another example)
.
100 REM CHA
IN
PROGRAM
1 10
LOAD "D
l
:CHAIN
.BAS"
SAVE (S.)
Format: SAVE
filespec
Example:
SAl)E "
Dl
:
D::At·lP2.
BAS"
!
Aetlrn
l
64

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xf551

Table of Contents