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 #121 background imageLoading...
Page #121 background image
Alari BASIC Reference
Guide
119
GET (CE.)
The
GET
function
reads 1
byte
from
a cha
nnel
that
has
been
opened
for
input.
GET
is
us
ed
with
the
keyboard,
display,
Program R
ecorde
r,
or
disk.
CONFIGURATION
GET
#a,
X
The first
argument
of
a
GET
stateme
nt
indicates
the
1/ 0
channel
that
will
be used.
If
the
first
argument
is
not
an
int
eger,
it
is
rounded
off
. The second argu
ment
names
the
variable
that
will
be
assigned
the
va
lue
read
from
the channe
l.
This value
will
be
an
integer
between
0 and
25
5.
For
example
,
if
data
is
being accepted
from
the
Program
R
eco
rder,
the
GE
T stat ement must be pr
eceded
by an OPEN
statement. The OPEN statement must
inclu
de
the
number
of
the
I/ O channel, the
devi
ce name, dnd an
input
opera
ti
on
co
d
e.
Numbers
that are not
int
ege
rs
are
rounded
off.
EXAMPLE
10 OPEN
#3,4,0,
"C"
20
FOR J = 1
TO
100
30
GET
#3,
X
40
PRINT CHR$
(X)
50
NEXT
J
60
CLOSE
#3
The
previous
examp
le shows
the
co
rr
ect
format
for
us
ing
a GET
statement. Line
10
opens
the
I/ O
chann
el a
nd
specifi
es
c
hann
el
#3
for
input
with
the
Program
Re
corder.
The
channel
number
can be any
number
from
1
through
7,
but
the
c
hann
el
must
not
be
open
for
another
device
. The seco
nd
arg
ument
of
the OPEN
statement
(4)
indicates that
the
device
wi
ll
be
used
for
input.
Line
20
is
th
e first
lin
e
of
a FORI
NEXT
l
oop
. The l
oop
e
nd
s
with
th
e
NEXT
statement
at
lin
e
50.
The
initi
al
va
lue
of
the co
unt
er
(J)

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