Atari 400 Users Handbooks page 252

Hide thumbs Also See for 400:
Table of Contents

Advertisement

250 User's Handbook
to
the
Atari
400/
800
Computers
If
an
INPUT#
statement attempts to
read beyond the
end of a
disk
file,
an
error
will result.
The GET
statement
is used to read
a single
numeric
value via
the
opel"]
channel specified
.
GET
uses
the
following
configuration:
GET
#channe/,
numeric
variable
The
channel
specified
must
be open for
input. The numeric
variable
indicated
will accept the value
returned by GET. This
value will lie between 0
and
255.
When GET is used
with the 810
Disk Drive
and
the buffer
is
empty, the initial GET
statement will
result in
a block of
data
being read into the
disk buffer. The first value
in the buffer
will
be
assigned to the
numeric
variable
specified with
the first GET
statement.
Each
successive
GET
statement will read a value from
the buffer.
When the buffer has
been emptied
,
another block of
data
will
be
read into the buffer from
the diskette.
NOTE and POINT
NOTE
and
POINT
are
BASIC
statements that aid the
user in
random access of Atari
disk
files
.
Random
access
is
only
possible
with DOS
version
2.0.
The NOTE
statement will
return
the position of the
file pointer.
The
file
pointer
will be
referenced using two
separate data
items.
One data item is
the
number
of the
last
sector accessed.
The
other data item is the number
of the
last
character
referenced
within
that
sector.
The NOTE statement uses
the following configuration:
NOTE
#channe/
,
sector, character
The NOTE
statement will
reference
the
file
opened
with the
specified
channel
number. The number
of the
last
sector
accessed will
be
assigned to the variable given
in
sector.
The

Advertisement

Table of Contents
loading

This manual is also suitable for:

800

Table of Contents