reg | value | descr |
---|---|---|
AH | 0x3d | |
AL | open mode (see below) | |
DS:DX | pointer to ASCIIZ file name |
Bit | Descr |
---|---|
0-2 | Access Mode (see below) |
3 | reserved, always 0 |
4-6 | sharing mode (DOS 3.1+) |
7 | 1 : private, 0: inheritable (DOS 3.1+) |
bits | Descr |
---|---|
000 | Read |
001 | Write |
010 | Read & Write |
bits | descr. |
---|---|
000 | compatibility mode (exclusive) |
001 | Deny others read/write access |
010 | deny others write access |
011 | deny others read access |
100 | full access permitted to all |
CF is cleared : success
reg | descr |
---|---|
AX | File Handle |
CF is set: error
reg | descr |
---|---|
AX | error code (see DOS Error Code) |