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 #165 background imageLoading...
Page #165 background image
Alari
BASIC Reference
Guide
163
Program Recorder
A PRINT statement that
is
used
with
the
Program
Recorder
is
generally used
to
store data that
will
be
recovered
with
an INPUT
statement.
If
the OPEN statement
for
the
Program
Recorder
specifies short
gaps
between
the records (special
operation
code
128),
the
tape
does
not
stop
moving.
The data
is
not
recorded
correctly
if
the
program
does
not
supply data fast
enough
to
keep
up
with
the
tape.
EXAMPLE
10 OPEN
#1
, 8,
0,
"C"
20
FOR I = 1
TO
100
30
X =
INT
(RND
(9)
* 100)
40
PRINT
#1,
X
50
NEXT
I
60
CLOSE
#1
70
END
The
previous
example contains a
program
that records 100
random
numbers
on
tape. Line
10
opens I/ O
channel
number
1
for
output
to
the
Program Recorder.
At
line
20,
a FOR/NEXT
loop
is
set
up
to
be repeated 100 times. Line
30
assigns a
random
number
between
0 and
99
to
the
variable X.
At
line
40
,
the
value
of
X
is
printed
on
tape, using
the
Program Recorder. Line
50
is
the
NEXT
statement that
completes
the FOR/
NEXT
loop.
Line
60
closes
the
I/ O channel, and
line
70
ends
the
program
.
Disk
A PRINT statement that
is
used
with
a disk
is
generally
used
to
store data that
will
be
recovered
with
an
INPUT statement.
The
format
for
using a PRINT statement
with
a disk
is
the
same
as
with
the
Program Recorder. The
appropriate
OPEN
statement
must
precede
the
PRINT statement. The I/ O
channel
must
be
open
for
update
,
append
,
or
output
to
the
disk
file
.

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