Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Ralf Brown's Interrupt List (Part 1,2) - int 21 - dos - parse filename http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 21 - DOS - PARSE FILENAME
        AH = 29h
        DS:SI -> string to parse
        ES:DI -> buffer to fill with unopened FCB (see AH=0Fh)
        AL = bit mask to control parsing
            0 = 0: parsing stops if file separator found
                1: leading separators ignored
            1 = 0: drive number in FCB set to default drive if not present
                   in string
                1: drive number in FCB not changed
            2 = 0: filename in FCB set to blanks if no filename in string
                1: filename in FCB not changed if string does not contain
                   a filename
            3 = 0: extension in FCB set to blanks if no extension in string
                1: extension left unchanged
Return: AL = 00h no wildcards in name or extension
             01h wildcards appeared
             FFh drive specifier invalid
        DS:SI -> first byte after parsed string
        ES:DI buffer filled with unopened FCB
Notes:  asterisks expanded to question marks in the FCB
        all processing stops when a filename terminator is encountered
        cannot be used with filespecs which include a path (DOS 2+)

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson