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 #51 background imageLoading...
Page #51 background image
CLR
Figure
8-5
shows
an
example
of
building
a 6 x 3
matrix.
10
Dit·1
t-1(
6
..
3 >
20
FOP
Pm·l=0
TO
6
30
FOF.~
COL=l
TO
3
40
tl
:
RC!l·J
..
COL
)=I
tH
(
~:t-~D
·::
0
/~::
1
00(1
)
50
t·~E~=:T
COL
=
t·~E>=:T
ROH
60
FO~:
F.:Ol·J=O
TO
6
70
FOF.:
COL=l
TO
3
:30
F'P
I
rH
t-1<
F.:Ol·J
·'
COL
>
90
t·~E:=<T
COL
:
F'P
I r·H =
t
·
~E>=:T
F.:O~·l
Figure
8-5.
Building
A
Matrix
Note
that
the
words
ROW
and
COLUMN
are
not
BASIC
commands,
statement
s,
functions,
or
keyword
s.
They
are
simply
variable
names
used
here
to
designate
which
loop
function
is first.
The
program
could
just
as easily
ha
ve
been
written
with
X
and
Y
as
the
variable
names.
Format:
CLR
Example:
200
CLR
This
command
clears
the
memory
of
all
previously
dimensioned
strings,
arrays,
and
matrices
so
the
memory
and
variable
names
can
be
used
for
other
purposes.
It
also
clears
the
values
stored
in
undimensioned
var
iable
s.
If
a
matrix,
string,
or
array
is
needed
after
a
CLR
command,
it
must
be
redimensioned
with
a DIM
command.
Ar.,.ays
and
Matr·
ice
s
43

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