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 #130 background imageLoading...
Page #130 background image
128 User's
Handbook
to
the
Atari 400/ 800
Computers
30
(X<100)
is
true.
As
a result,
the
statements after THEN are
executed, and the values
of
X and
Yare
printed.
The
following
example
illustrates
the
use
of
algebraic
expressions.
An
algebraic expression
is
true
when
it
does
not
equal zero.
EXAMPLE
10
FOR
I
=-2TO
2
20
IF
NOT
I THEN END
30
PRINT I
40
NEXT
I
RUN
-2
-1
The previous example contains a
program
that ends
when
a
condition
is
true. The
condition
is
NOT
I.
NOT
I
is
true
when
I
is
false, and I
is
false
when
I
is
set equal
to
zero.
When
I
has
any
value
other
than zero,
it
is
true.
Line
10
begins a
FOR
/
NEXT
loop.
The
first
time
the
loop
is
executed, I
is
set equal
to
-2. Line
20
is
an
IF
/ THEN statement
with
the
condition
NOT
I.
When
I
is
set
equal
to
-2,
it
is
considered
true
because
it
is
not
equal
to
zero. Since I
is
true,
NOT
I
is
false.
The
condition
at line
20
is
false,
so
the
program
does
not
end.
Line
30
is
executed next,
so
the value
of
I
is
printed.
Line
40
returns the
program
to line
10
,
where
the
counter
(I)
is
incremented
by
1.
I
is
set equal to -1 ,
so
I
is
still true. Since I
is
true,
NOT
I
is
false. The
condition
of
line
20
fails,
so
the
value
of
I
is
printed.
When
the
loop
is
ex
ecuted the
third
time, I
is
set equal to zero. I
is
false,
so
NOT
I
is
true. Since
NOT
I
is
true
, the
program
is
ended
at
line
20.

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