Atari DOS 2.5: XF551 Owner's Manual page 33

Atari dos 2.5 disk drive
Table of Contents

Advertisement

Saving and Loading a BASIC Program
The BASIC
computing
language
includes its own
SAVE and
LOAD
instructions
thai you use to store and retrieve your pro-
grams
on
diskette. To Iry
saving
and loading a BASIC
program,
first
select
RUN
CARTRIDGE
from the DOS Menu. When the
READY
prompt
appears,
type the following program exactly as
it
appears (even the spaces and punctuation are crucial in pro-
gramming).
Press
(Rew'n
]
althe end
of
each
line.
If
you
make
a
mistake
,
you
can
press
I
OeIeteBkSp
!
to erase
il
.
1(1
P~:IHT
"THI:;: LU1E
REPEATS ITSELF"
20 GOTO
10
You
've
just
written a two-line BASIC program that tells your
com·
puter to print
-
display
on your
screen -
T HIS LINE REPEATS
ITSELF and
then
go back to the previous
instruction
.
You
can
imagine
what
's
going to happen when this program runs
.
Try
it
.
Type
RUN
,
then press
[ReWTI
).
When
you've seen
enough
,
press
[
Break.
]
to
stop the program from runn ing
.
To
store
this
(or
any)
BASIC
program on
diskette,
you
have to
enter
the appropriate BASIC
command
-
SAVE -
followed by a
filespec
that DOS
understands.
Replace
your
DOS diskette
in
Drive
1 with one of the initialized
practice diskettes
.
Then type
SAVE
"
D:PROGRAM1 .BAS
"
and press
[
Ret\rn ).
As your disk
drive
goes to work
,
your
program
is recorded
on
diskette
.
Though it has now been
stored on diskette,
your program
also
remains
in your computer's
memory.
To
see
the program
load
back
into
your
computer,
first
type
NEW
and press
[
Ret\rn
)
to clear
it from
memory.
Then press
[Stwft
)
and
[Clear
]
at the
same
time
to
clear
it
from your
screen
.
Next
,
type
LOAD
"
D:PROGRAM1
.
BAS
"
and press
IRe4rn
J
.
As
your
disk drive goes to work
,
the
program
is loaded
back into
your
computer.
Finally,
type
LIST
and press
I
ReWT1
)
to bring the
program
back up on
your screen
.
No
t
e: The BASIC LOAD and SAVE
commands
are not the same
as DOS LOAD
and
SAVE
commands.
2
3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xf551

Table of Contents