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 #110 background imageLoading...
Page #110 background image
108 User's
Handbook
to
the
Atari 400/ 800
Computers
EXAMPLE
10
DIM
A$(10)
20
READ
A$
30
PRINT A$
40
DATA
I N DEPENDENCE
DAY
RUN
INDEPENDEN
The
preceding
example shows that the
st
ring
variable A$
is
dimensioned
to
10
characters at
line
10.
However
,
during
the
program
, A$
is
assigned a
16
character string
with
the
READ
statement at
line
20.
Since
room
for
only
10
characters
was
set
aside in
memory
,
only
the
first
10
characters
of
the
DATA
item
are assigned
to
A$. The PRINT statement in
line
30
displays
the
contents
of
A$. It can be seen
from
the
output
that A$
only
has
10
characters.
The
DIM
statement must be executed
before
an
INPUTor
READ
occurs.
If
the
DIM
statement
of
the
previous
example
was
deleted
,
the
following
m
essage
would
occur
.
ERROR-9 AT
LINE
20
If
a variable
is
dimensioned
twice
in the same
program
(without
CLR), ERROR-9 occurs.
The
maximum
size
of
st
ring
variables depends
on
the
amount
of
available
memory
at
the
time
of
the
DIM
statement.
Dimensioning
numeric
variables
determines
the
number
of
elements that
the
variable can
contain,
not
the
length. A
subscript
is
the
numb
er that follows a variable name (in
parentheses) and indicat
es
which
element
of
that variable
is
considered. The
following
exa
mple
shows
how
to
assign 4 values
to
a subscripted variable.

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