Chapter
1
I
System
Calls
Fname
Parse Filename Function Call
29H
Parses a string
for
a
filename
of
the form
d:filename.ext.
If one is found, a corresponding unopened FCB is created
at
a
specified location.
Bits
0-3
of
AL
control the parsing and processing (bits
4-
7
are ignored):
Bit
Value
Meaning
0
0 All parsing stops if
a
file separator is
1
Leading separators are ignored.
1
0 The drive number in the
FCB
is set
to
0 (default drive) if the string does
not contain a drive number.
1
The drive number in the FCB is not,
changed if the string does not contain
a
drive number.
2
0 The filename in the FCB is set
to
8
blanks if the string does not contain
a
filename.
1
The filename in the FCB
is
not
changed if the string does not contain
a
filename.
3 0 The extension in the FCB is set
to
3
blanks if the string does not contain
an extension.
1
The extension in the FCB is not
changed if the string does not contain
an extension.
If the filename or extension includes an asterisk
(*I,
all
remaining characters in the name
or
extension are set
to
question mark
(?I.
encountered.
82