Tandy 600 Programmer's Reference Manual page 25

Bios programmers
Hide thumbs Also See for 600:
Table of Contents

Advertisement

FUNCTION
29h
-
Parse
File
Name
AX
BX
CX
DX
SP:
BP:
SI:
Dl:
IP:
FLG
CS
DS
SS
ES
XXXXXXXX
XXXXXXXX
Entry:
AH
=
25h
(function
code)
AL
=
Wild cards
flag
DS:SI
=
Pointer
to
input
string
DS:DI
=
Pointer
to
output
buffer
xxxxxxxxxxxxxxxxxxx
Exit
xxxxxxxxxxxxxxxxxxx
SI
=
Pointer to terminating
character
AX =
Error
code
if
error
xxxxxxxxxxxxxxxxxxx
Function
29h
will
parse
an ASCIIZ
string
containing
a
file
specification
and
return
a
structure
containing the
name
broken
into
its
component
parts.
The
structure
returned
will
have
the
following
form:
Field
Length
NAME
8
EXT
3
DEVICE
8
NAME.FLAG
1
EXT_FLAG
1
DEVICE_FLAG
1
File
name
File
extension
Device
name
File
name
present
flag
File
extension present
flag
Device
name
present
flag
If
the
input string
contained
the
name
of
a
device
rather
than a
file,
the
device
name
will
be
in
the
DEVICE
field,
and
the
DEVICE_FLAG
will
be
set.
if
an
error
is
discovered
in
the
input
string,
the
carry
flag
will
be
set,
and
an
error
code
will
be
in
AX.
In
all
cases,
on
return, SI
will
point
to
the
last
character
used
in
parsing the
name.
Normally
this
will
be
the terminating
0.
If
an
error
occurs,
however,
SI
will
point to the
character
at
which
the
error
was
detected.
20

Advertisement

Table of Contents
loading

Table of Contents