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 #54 background imageLoading...
Page #54 background image
52
User's
Handbook to the Atari 4001800 Computers
Compound
Expressions and
Order
of Evaluation
All
of
our
preceding
examp
l
es
were
simple expressions. A
simple
express
ion
is
one
which
conta
ins just
one
operator
and
one
or
two
operands.
Simple expressions can
be
combined
to
form
compound
expressions. The
following
are
examples
of
compound
expressions.
(A +
B)
*
7-
4
(A +
B)
AND
(C
+D)
IF
A = 1
AND
B = 1 THEN C = 1
With
compound
expressions, it
is
necessary that
the
computer
knows
which
operat
ion
should
be
undertaken
first.
Atari
BASIC
follows
a standard
order
or
evalu
ation
within
compo
und
expressions. This
order
is
out
lin
ed in Table 3-1.
Note
that
parentheses have the highest
precedence
level. In
other
words,
any expressi
on
enclosed
within
parentheses
will
be
evaluated first. If
more
than
one
set
of
parentheses appears
in
an
expression, these
will
be
evaluated
from
l
eft
to
right.
One
pair
of
parentheses can
be
used
to
enclose an
operator
enclosed
within
another
set. In such
an
instance,
Atari
BASIC
will
eva luate
the
expression
within
the
innermost
set
of
parentheses
first,
followed
by
the
next
innermost
set, etc.
When
expressions have
the
same
order
of
evaluation
,
they
wil
l
be
evaluated
in
order
from
left
to
right
w
ithin
the
compo
und
exp
ression .

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