EasyManuals Logo
Home>Atari>Desktop>800

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 #168 background imageLoading...
Page #168 background image
166 User
's
Handbook
to
the
Atari 400/ 800
Computers
PTRIG
The
PTRIG
fun
c
tion
return
s the
va
lue
of
0 if the
specified
paddle
contro
ller
butt
o n is d
ep
r
esse
d. A 1 is re
turned
if the
button
is
released.
CONFIGURATION
X = PTRIG(a)
The
va
lue
of
the
argument
(a)
indi
ca
t
es
the
number
of
the
paddle
. A
pair
of
controllers
can be
plugged
into
each
of
the
controller
jacks
on
th e
compu
ter.
Th
e first jack accepts paddlesO
and
1.
The
second
jack accepts paddl
es
2 and
3,
etc. A total
of
8
paddle
contro
lle
rs
can be u
se
d
at
one
tim
e.
EXAMPLE
IF
PTRIG(3) = 0 THEN END
The statement
in
the
preced
ing
example
ends
the
program
if
the
button
on
paddle
3
is
being pressed.
PUT
(PU.)
The PUT
statement
is
used
to
send
one
byte
to
an
output
device.
One
byte
represents an
int
eger
between
0 and
255.
CONFIGURATION
PUT
#a
, b
The first
argument
of
a PUT stateme
nt
is
the
I/ O
channel
number.
The
second
argument
is
the
va
lue
that
is
sent
to
an
output
device
.
If
e
ith
er
of
the
a
rgum
ents are
not
integers
,
they
are
rounded
off.
An
OPEN
statement
must
precede
the
PUT
statement
except
when
the
PUT statement
is
used
with
graphics displays. The first
argument
of
the
PUT
statement
must
correspond
to
the
I/ O

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