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 #156 background imageLoading...
Page #156 background image
154 User
's
Handbook
to
the
Atari 400/ 800
Computers
EXAMPLE
10
X = 5
20
Y =
10
30
IF
X =
10
OR Y THEN PRINT Y
40
END
RUN
10
The previous example consists
of
a
program
that
uses
an
OR
statement
within
an
IF
/T
HEN
statement. Line 10sets Xequal
to
5.
Line
20
sets
Y equal
to
10
. Line
30
displays the value
of
Y
if
either
(or
both)
of
the arguments
of
the OR statement are
true
. The first
argument
of
the
OR statement
is
the relational expression X=10.
Since X
is
set equal
to
5 in line
10
, this expression
is
false. The
second
argument
of
the
OR
statement
is
the
algebraic
expression
Y.
The expression
(Y)
is
considered false
only
when
it
equals zero.
Si
nce Y
is
set equal
to
10
at
line
20,
the expression
is
considered
true
.
As
a result,
the
OR statement
is
true
because
one
of
the
arguments
is
true
. The value
of
Y
is
displayed because the
condition
of
the
IF
/ THEN statement
is
true.
PADDLE
The PADDLE
function
returns
an
integer between 1 and
228
that
depends
on
the
rotation
of
a particular paddle.
CONFIGURA
TlON
X = PADDLE
(a)
A total
of
8 paddle game controllers can be used at
one
time. The
value
of
the
argument
(a)
indicates the
number
of
the paddle. If
the
argument
of
the PADDLE statement
is
not
an
integer, it
is
rounded
off
. The paddles are
numbered
0
through
7.
If the
PADDLE statement
has
an
argument
greater than
7,
the
results
are
unpredictable.
If a paddle
is
not
present
when
a PADDLE
statement
is
executed, the value
228
is
returned
.

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