95 lines
2.4 KiB
HTML
95 lines
2.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Type"
|
|
content="text-html; charset=Windows-1252">
|
|
<title>INT 21,29 - Parse a Filename for FCB</title>
|
|
<meta name="FORMATTER" content="Microsoft FrontPage 2.0">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1><a name="kap_interrupt_1830"></a>INT 21,29 - Parse a Filename
|
|
for FCB</h1>
|
|
|
|
<p> AH = 29h</p>
|
|
|
|
<p> AL = bit pattern to control parsing (see bit meanings below)</p>
|
|
|
|
<p> DS:SI = pointer to a filespec to parse</p>
|
|
|
|
<p> ES:DI = pointer to a buffer for unopened ~FCB~</p>
|
|
|
|
<p> Bit patterns for parsing control found in AL:</p>
|
|
|
|
<p> ¦7¦6¦5¦4¦3¦2¦1¦0¦ AL</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ +---- 1 = ignore leading separators</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ 0 = don't ignore leading separators</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ ¦ +----- 1 = modify drive ID if specified</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ ¦ 0 = modify drive ID regardless</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ +------ 1 = modify filename if specified</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ 0 = modify filename regardless</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ +------- 1 = modify extension if specified</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ 0 = modify extension regardless</p>
|
|
|
|
<p> +-------------- unused</p>
|
|
|
|
<p> on return:</p>
|
|
|
|
<p> AL = 00 if no wildcard characters present</p>
|
|
|
|
<p> = 01 if wildcards present in string</p>
|
|
|
|
<p> = FF if drive specifier is invalid</p>
|
|
|
|
<p> DS:SI = pointer to the first character after parsed filename</p>
|
|
|
|
<p> ES:DI = pointer to the updated unopened FCB</p>
|
|
|
|
<p> - retrieves filename from the command line string and places</p>
|
|
|
|
<p> the filename components into an unopened FCB for later use</p>
|
|
|
|
<p> - if no filename is found a pointer is returned in ES:DI that</p>
|
|
|
|
<p> has a blank at ES:DI+1</p>
|
|
|
|
<p> - this function can be used to detect the existence of
|
|
logical DOS</p>
|
|
|
|
<p> drives by creating a dummy filespec with a drive letter and
|
|
colon</p>
|
|
|
|
<p> prepended. If the drive is invalid, this function will return
|
|
FF</p>
|
|
|
|
<p> in AL</p>
|
|
|
|
<hr>
|
|
|
|
<table border="0" width="100%" cols="3">
|
|
<tr>
|
|
<td width="33%">Zurück zum <a href="inte1at0.htm">Interrupt
|
|
Info</a>. </td>
|
|
<td align="center" width="33%"><a
|
|
href="mailto:Roger.Morgan@htl-steyr.ac.at">Roger Morgan</a>
|
|
/ 1998 </td>
|
|
<td align="right" width="33%"><font size="1">L.Änderung <!--webbot
|
|
bot="Timestamp" s-type="EDITED" s-format="%d.%m.%y"
|
|
startspan -->29.03.99<!--webbot bot="Timestamp" endspan
|
|
i-checksum="13964" --> </font></td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|