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 2+ - create a file with handle (creat) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 21 - DOS 2+ - CREATE A FILE WITH HANDLE (CREAT)
        AH = 3Ch
        CX = attributes for file
            bit 0: read-only
                1: hidden
                2: system
                3: volume label (ignored)
                4: reserved, must be zero (directory)
                5: archive bit
                7: if set, file is shareable under Novell NetWare
        DS:DX -> ASCIZ filename (may include drive and path)
Return: CF set on error
            AX = error code (03h,04h,05h) (see AH=59h)
        CF clear if successful
            AX = file handle
Note:   if a file with the given name exists, it is truncated to zero length
SeeAlso: AH=16h,AH=3Dh,AH=5Ah,AH=5Bh

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