INT 21 - DOS - PARSE FILENAME                         

Input

DOS1 Y DOS2 Y

DOS3

Y DOS5 Y

Output

AX

29h Bit Mask   Status AX

BX

        BX

CX

        CX

DS:SI

 String to Parse First byte after parsed string DS:SI

ES:DI

Buffer to Fill with Unopened FCB Buffer Filled with Unopened FCB ES:DI

 

Bit Mask
Bit Dec Hex  Description
0 1 01h  Ignore leading separator
1 2 02h  Set drive number in FCB to default
2 4 04h  Leave filename if none found, else blank
3 8 08h  Leave extension if none found, else blank
4 16 10h  Not Used
5 32 20h  Not Used
6 64 40h  Not Used
7 128 80h  Not Used
Status: 00h = No wildcards in name or extension
        01h = Wildcards appeared
        FFh = Drive specifier invalid

See Also FCB


Copyright © 1985 to 2022 Beta Systems                            Last modified: Wednesday, January 05, 2022 .