EasyManuals Logo

Atari 800 User Manual

Atari 800
326 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 #111 background imageLoading...
Page #111 background image
Atari
BAS
IC Reference
Guide
109
EXAMPLE
10
DIM
X(3)
20
FOR I = 0
TO
3
30
READ X:X(
I)
= X
40
PRINT
X(
I
),
50
NEXT
I
60
DATA
1
2,
14,
13,
15
RUN
12
14
13
15
Noti
ce
that
4 values
ca
n be
ass
igned
to
a vari able
that
has
a
dimension
of
3.
This
is
possible because each array's
initial
eleme
nt
h
as
a subs
cript
of
o.
The array
ca
n be r
ep
r
ese
nted
as
a
table
of
values
as
shown
in the
following
illustr
at ion.
o
1
2
3
X 12 14
13
15
The
numb
er in the
DIM
stateme
nt
indicates
the
largest s
ub
scr
ipt
that can be used.
It
should
be n
oted
from
the
exa
mpl
e
(line
30)
th
at s
ub
sc
ript
ed
variables can n
ot
be u
se
d in a READ statement.
As
a r
es
ult
, a
separate statem
ent
is
needed
to
ass
ign
the
subscri
pte
d variable.
The
ass
i
gnme
nt
stateme
nt
can be
on
the
sa
me
lin
e
(as
s
hown
her
e)
or
on a separate
lin
e.
Num
eric variables can also be u
sed
with
two
subscripts. This
results in a
two
dimensional
array,
or
matri
x.
For exampl
e,
if
X
is
dimensioned
in
the
statement
DIM
X(3,2)
the
following
table
would
result.
X
o
1
2
3
o
1
2

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
ProcessorMOS Technology 6502
Processor Speed1.79 MHz
ROM10 KB
GraphicsANTIC and GTIA chips
Release Year1979
Display Resolutionup to 320 x 192
Colors128 colors
Sound4 channels
StorageCartridge, cassette, floppy disk
PortsCartridge, serial, monitor
Operating SystemAtari OS

Related product manuals