Using The Status Command; Substituting The Xid Command For Dos Menu Options - Atari DOS 2.5: XF551 Owner's Manual

Atari dos 2.5 disk drive
Table of Contents

Advertisement

Using the STATUS Command
STATUS (ST.)
Format
: STATUS
Hiocb,
avar
Exa
mple:
10(1 STATUS #5, ERF.:OR
The STATUS command
is
used to determine the condition (siale)
of
a file. This
command is
a CIO command and
checks
for sev-
eral
ways an error
might
occur.
The first
set
of
possible errors it
checks for is as follows:
Sector
buffer available?
Legal device number?
Legal
filename?
File
o
n
diskette?
File
locked?
If
no,
then
ERROR-161
If
no,
then
ERROA·20
If
no,
then
ERROR-170
If
no,
then
ERROR-170
If
yes,
then ERROR-167
You can also identify all 110 serial
bus
errors with a STATUS com-
mand. These
are
as follows:
Device
timeout
Device
not acknowledged
Serial bus error
Serial bus data
fr
ame overrun
Serial bus checksum error
Device
done
EAAOA·138
EAAOA·139
EAAOA·140
ERAOR·141
EAAOA·142
ERROR-144
Before
you can issue a STATUS command, you
must
open the
file.
II
is advisable that you use the XID
command
form
for this
command since it is
more reliable
and allows you to associate a
specific
filename
with
the error you are
trying to find
.
Substituting the XIO Command
for DOS Menu Options
XIO(X.)
76
Format
: XID cmdno,
Hiocb,
aexp1, aexp2, filespec
Example:
100
~'~
I
O
3,
#6,4
,121,
"II:T EST.BA::;"

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xf551

Table of Contents