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 #169 background imageLoading...
Page #169 background image
Atari BASIC Reference
Guide
167
channel
number
in
the
OPEN statement.
When
a PUT
statement
is
used
for
the
display
following
a GRAPHICS
statement,
the
I/ O
channel
number
must be
6.
The I/ O
channel
must be
open
for
output
to
an
appropriate
output
device.
The second
argument
can
be
any
non-negative
value,
but
the
value
that
is
sent
to
the
output
device
will
always be an
integer
between
0
and
255.
Larger values are
reduced
modulo
256
.
With
the
Program
Recorder,
an OPEN
statement
is
needed
to
open
an
I/ O
channel
for
device
"C"
.
When
the
Program
Recorder
is
used
for
short
gaps
between
records,
the
tape keeps
moving
until
the
I/ O
channel
is
closed.
As
a result,
the
program
must
keep
up
with
the
tape
or
the
information
will
not
be
recorded
prop
er/yo
EXAMPLE
10
OPEN
#1,
8,
0,
"c"
20
FOR I = 1
TO
100
30
X = INT(RND(9) * 100)
40
PUT
#1,
X
50
NEXT I
60
END
The
previous
e
xample
c
ontains
a
program
that
records
100
random
numbers
. Line 10
is
an OPEN
statement
that
opens
I/ O
channel
number
1
for
output
to
the
Program Recorder. Line 20is
a FOR
statement
that begins a FOR/ NEXT
loop
that
is
repeated
100 times. Line
30
sets
X
equ
al
to
a
random
integer
between
0 and
100
.
Line
40
contains
a PUT
st
a
tement
that sends
the
value
of
the
variable X
to
the
output
device
on
I/ O
channel
number
1. Since
the
I/ O
chann
el
is
open
for
output
to
the
Program
Recorder
,
the
values
of
the
variable X are
recorded
on
the
cassette tape.
When
the
FOR/ NEXT
loop
has
been
executed
100 times,
the
END
statement
at
line
60
closes
the
I/O
channel
and
ends
the
program.

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