EasyManuals Logo
Home>Atari>Desktop>800

Atari 800 Basic Reference Manual

Atari 800
122 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 #36 background imageLoading...
Page #36 background image
POINT
(P.)
PRINT
(PR
or?)
PUT(PU.)/
GET(GE.)
READ
(REA.)
DATA
(D.)
28
I/0
Commands
and
Devi
ce
s
Format:
Example:
POINT
#aexp,
avar,
avar
100 POINT
112,
A,B
This
command
is
used
when
reading
a file
into
RAM.
The
first
avar
specifies
the
sector
number
and
the
second
avar
specifies
the
byte
within
that
sector
where
the
next
byte
will
be
read
or
written.
Essentially,
it
moves
a
software-controlled
pointer
to
the
specified
location
in
the
file.
This
gives
the
user
"random"
access
to
the
data
stored
on
a
disk
file.
The
POINT
and
NOTE
commands
are
discussed
in
more
detail
in
the
DOS
Manual.
Format:
PRINT [#aexp] {
:}
[exp]
[
,exp
..
.]
Examples:
PRINT X,
Y,
Z,
A$
100 PRINT
"THE
VALUE OF X
IS
";X
100 PRINT "COMMAS", "CAUSE",
"COLUMN",
"SPACING"
100
PRINT
#3,
A$
A PRINT
command
can
be
used
in
either
Direct
or
Deferred
mode.
In
Direct
mode,
this
command
prints
whatever
information
is
contained
between
the
quotation
marks
exactly
as
it
appears.
In
the
first
example,
PRINT
X,
Y ,Z,A$,
the
screen
will
display
the
current
values
of
X,Y,Z,
and
A$
as
they
appear
in
the
RAM-resident
program.
In
the
last
example,
PRINT #3,A$,
the
#3
is
the
file
specifier
(may
be
any
number
between
1
and
7)
that
controls
to
which
device
the
value
of
A$
will
be
printed.
(See
Input/Output
Devices.)
A
comma
causes
tabbing
to
the
next
tab
location.
Several
commas
in
a
row
cause
several
tab
jumps.
A
semicolon
causes
the
next
aexp
or
sexp
to
be
placed
im-
mediately
after
the
preceding
expression
with
no
spacing.
Therefore,
in
the
second
example
a
space
is
placed
before
the
ending
quotation
mark
so
the
value
of
X
will
not
be
placed
immediately
after
the
word
"IS".
If
no
comma
or
semicolon
is
used
at
the
end
of
a PRINT
statement,
then
a
£lmD
is
output
and
the
next
PRINT
will
start
on
the
following
line.
Format:
PUT
#aexp,
aexp
GET
#aexp,
Examples:
100
PUT
116,
ASC("
A")
200 GET
111,X
The
PUT
and
GET
are
opposites.
The
PUT
command,outputs
a
single
byte
from
0-255
to
the
file
specified
by
#aexp.
(II
is a
mandator
y
character
in
both
these
commands).
The
GET
command
reads
one
byte
from
0-255
(using
#aexp
to
designate
the
file,
etc.
on
diskette
or
elsewhere)
and
then
stores
the
byte
in
the
variable
avar.
Formats:
READ
var
[ ,
var
... ]
DATA
adata
[ ,
adata
..
.]
Examples:
100 READ A,B,C,D,E
110
DATA
12,13,14,15,16
100 READ A$,B$,C$,D$,E$
110
DATA
EMBEE, EVELYN, CARLA, CORINNE, BARBARA
These
two
commands
are
always
used
together
and
the
DATA
statement
is
always
used
in
Deferred
mode
1
The
DATA
statement
can
be
located
anywhere
1
A
Direct
mode
READ
will
only
re
ad
data
if
a
DATA
s
tatement
was
executed
in
th
e
pr
o
gram.

Table of Contents

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