EasyManuals Logo

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 #34 background imageLoading...
Page #34 background image
LOAD
(LO.)
LPRINT (LP .)
NOTE
(NO.)
OPEN
(0.)
CLOSE (CL.)
26
J/0
Commands
and
Devices
Format:
LOAD filespec
Example:
LOAD "D1:JANINE.BRY"
This
command
is
similar
to
CLOAD
except
the
full file
name
system
can
be
used.
LOAD
uses
long
inter-record
gaps
on
the
tape
(see
CLOAD)
and
uses
the
token-
ized
version
ofthe
program.
When
using
only
one
disk
drive,
it
is
not
necessary
to
specify
a
number
after
the
"D"
because
the
default
is
disk
drive
#1.
Format:
Example:
LPRINT
[exp][
{ : }
exp
... ]
LPRINT "PROGRAM TO CALCULATE
X"
100 LPRINT
X;
" ";Y;"
";Z
This
statement
causes
the
computer
to
print
data
on
the
line
printer
rather
than
on
the
screen.
It
can
be
used
in
either
Direct
or
Deferred
modes.
It
requires
no
device
specifier
and
no
OPEN
or
CLOSE
statement.
(BASIC
uses
IOCB
#7.)
The
above
program
listing
illustrates
a
program
that
will
add
5
numbers
entered
by
the
user.
To
print
a
program
listing
on
the
line
printer,
see
LIST.
Format:
Example:
NOTE
#aexp,
avar,
avar
100 NOTE #1,
X,
Y
This
command
is
used
to
store
the
current
disk
sector
number
in
the
first
avar
and
the
current
byte
number
within
the
sector
in
the
second
avar.
This
is
the
current
read
or
write
position
in
the
specified
file
where
the
next
byte
to
be
read
or
written
is located.
This
NOTE
command
is
used
when
writing
data
to
a
disk
file (see
POINT).
The
information
in
the
NOTE
command
is
written
into
a
second
file
which
is
then
used
as
an
index
into
the
first
file.
Formats:
OPEN
#aexp,aexp1,aexp2,
filespec
CLOSE
#aexp
Examples:
100 OPEN #2,8,0,
"D1:A
T ARI800.BAS"
100 A$
=
"D1:A
TARI800.BAS"
110 OPEN #2,8,0,A$
150 CLOSE #2
Before a
device
can
be
accessed,
it
must
be
opened.
This
"
opening"
process
links
a specific
IOCB
to
the
appropriate
device
handler,
initializes
any
CIO-related con-
trol
variables,
and
passes
any
device-specific
options
to
the
device
handler.
The
parameters
for
the
OPEN
command
are
defined
as follows:
#
Mandatory
character
that
must
be
entered
by
the
user.
aexp
Reference
IOCB
or
file
number
to
same
parameters
for
future
use
(as
in
CLOSE
command).
Number
may
be
1
through
7.

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
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