EasyManuals Logo

Atari 400 User Manual

Atari 400
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 400

Questions and Answers:

Question and Answer IconNeed help?

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

Atari 400 Specifications

General IconGeneral
ManufacturerAtari
Model400
TypeHome Computer
Release Year1979
CPUMOS Technology 6502
CPU Speed1.79 MHz
ROM10 KB
Operating SystemAtari OS
KeyboardMembrane keyboard
RAM8 KB (expandable to 48 KB)
GraphicsANTIC and GTIA chips
Sound4 channels
DisplayRF output for connection to TV
StorageOptional cassette tape drive or floppy disk drive
PortsCartridge
Display Resolution320x192 (16 colors)

Related product manuals