EasyManuals Logo
Home>Atari>Desktop>800

Atari 800 Basic Reference Manual

Atari 800
122 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #37 background imageLoading...
Page #37 background image
SAVE
(S.)
STATUS
(ST.)
XIO
(X.)
in
the
program,
but
must
contain
as
many
pieces
of
data
as
there
are
defined
in
the
READ
statement.
Otherwise,
an
"out
of
data"
error
is
displayed
on
the
screen.
String
variables
used
in
READ
statements
must
be
dimensioned
and
cannot
be
subscripted.
(See
STRINGS
Section).
Neither
may
array
variables
may
be
used
in
a READ
statement.
The
DATA
statement
holds
a
number
of
string
data
for
access
by
the
READ
statement.
It
cannot
include
arithmetical
operations,
functions,
etc.
Further-
more,
the
data
type
in
the
DATA
statement
must
match
the
variable
type
de-
fined
in
the
corresponding
READ
statement.
The
following
program
totals
a list
of
numbers
in
a
DATA
statement:
10
FOR
t·~=1
TO
5
2~1
F.~EAD
D
30
t·1=M+D
40
t·~E>::T
t·~
50
PF.~
I
NT
II
SUt1
TOTAL
EQUAL::;
II
;
t1
60
END
70
DATA
30
..
15
..
106
..
17
..
87
Figure
5-3
Read/Data
Program
Listing
The
program,
when
executed,
will
print
the
statement:
SUM
TOTAL EQUALS 255.
Format:
SAVE filespec
Example:
SAVE "D1:YVONNE.P
AT"
The
SAVE
command
is
similar
to
the
CSA
VE
command
except
that
the
full file
name
system
can
be
used.
The
device
code
number
is
optional
when
using
only
one
disk
drive.
The
default
is
to
disk
drive
#1. SAVE,
like
LOAD, uses
long
inter-
record
gaps
on
the
cassette (see
CSA
VE)
and
the
tokenized
form
of
the
program.
Format:
Example:
STATUS
#aexp,avar
350 STATUS #1,Z
The
STATUS
command
calls
the
STATUS
routine
for
the
specified
device
(aexp).
The
status
of
the
STATUS
command
(see
ERROR
MESSAGES,
Appendix
B)
is
stored
in
the
specified
variable
(avar).
This
may
be
useful
for
future
devices
such
as
the
RS-232
interface.
Format:
Example:
XIO
cmdno,
#aexp,
aexp1, aexp2,
filespec
XIO 18,#6,0,0,
"S:"
The
XIO
command
is a
general
input/output
statement
used
for
special
opera-
tions. One
example
is its
use
to
fill
an
area
on
the
screen
between
plotted
points
I/0
Commands
and
Devices
29

Table of Contents

Other manuals for Atari 800

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atari 800 and is the answer not in the manual?

Atari 800 Specifications

General IconGeneral
BrandAtari
Model800
CategoryDesktop
LanguageEnglish

Related product manuals