Using The Open/Close Commands - Atari DOS 2.5: XF551 Owner's Manual

Atari dos 2.5 disk drive
Table of Contents

Advertisement

Each
110
command
must have
an
1
0CB associated
with
it.
The
110
commands that can
be used
in
connect
ion with
DOS
2.5 are:
OPEN/C LOSE
INPUT/
PRINT
PUT/GET
STATUS
XIO
Using the OPEN/CLOSE Commands
OPEN
(0.)
Format
: OPEN
#iocb,
aexp1
,
aexp2
,
filespec
Example
: l(H
]
OPHHt2
,
:3
, (1,
" Dl
:
ATARI
:300
.
BAS"
The
OPEN
statement links a specific
10CB
to the appropriate
device
handler,
initializes any CIO-related control variables (see
Glossary),
and
passes
any
device-specific options to the
device
handler.
The
parameters in
this
statement are defined as
follows:
#
iocb
aexp1
aexp2
filespec
Mandatory character entered by
user.
A
number
between
1 and 7 that
refers
to a
device
or
file.
Number that determines
the type of operation to be
performed.
Code 4 '" input operation
;
positions
file pointer
to
start of file
.
6 = disk
directory
input operation
,
DOS 2.0S
compatible
.
7
=
disk directory
input
,
with
DOS
2.5 informa-
tion
.
a
=
output operation; positions file
pointer to
start of
file.
9
=
end-o'-file append operation
;
positions file
pointer to end
01
file.
Code 9 allows pro-
gram input
from
screen
editor
without
user
pressing
(RetI.rn
I.
12:;;
input
and
output operation
;
positions
file
painter to
start of
lile
.
Device-dependent auxiliary
code
.
Specific
file
designation (see
Section
3 for filespec
definition).
67

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xf551

Table of Contents