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 #157 background imageLoading...
Page #157 background image
Atari BASIC Reference
Guide
155
The
paddle
controllers
are used
only
in
pairs. A
pair
of
controllers
is
plugged
into
one
of
the
controller
jacks
on
the
front
of
the
computer.
The first jack accepts paddles 0 and
1.
The
second jack accepts paddles 2 and
3,
etc.
If a paddle
is
rotated
fully
clockwise, the value 1
is
returned.
The
value increases
as
the
paddle
is
rotated
counter-clockwise.
The
maximum
value
returned
is
228.
EXAMPLE
10
IF
PADDLE
(1)=150
THEN END
20
GOTO
10
The previous example consists
of
a
program
that
executes
line
10
repeatedly
until
the
paddle
is
rotated
more
than halfway
counter-clockwise.
Since PADDLE
(1)
specified, the paddles
must be
plugged
into
controller
jack 1.
PEEK
The
PEEK
function
is
used
to
recover
the
value in a
memory
location.
CONFIGURATION
X =
PEEK
(a)
A
memory
location
contains
an
integer
value
between
0 and
255.
The
argument
of
a
PEEK
statement refers
to
the
memory
location. A value
error
occurs
if
the
argument
is
negative
or
greater than
65535.
If the
argument
(a)
is
not
an
integer,
it
is
rounded
off.
Many
memory
locations are
of
general interest. The contents
of
a
memory
location
can be changed
with
a POKE statement.
Appendix
E
contains
information
about
commonly
used
memory
locations.
EXAMPLE
PRINT
PEEK
(83)
39

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