Skip to content

Commit 3e80e7d

Browse files
committed
21.6C: note bit 0 DH and AL allowed any values, suggest CF set
1 parent f35cbd5 commit 3e80e7d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

source/Interrupt List/INT 21 DOS Function Calls/INT 216C00 DOS 40 EXTENDED OPENCREATE.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ INT 21 - DOS 4.0+ - EXTENDED OPEN/CREATE
2020
DL = action if file exists/does not exist (see #01770)
2121
DH = 00h (reserved)
2222
DS:SI -> ASCIZ file name
23+
CF should be set on entry for better compatibility
2324
Return: CF set on error
2425
AX = error code (see #01680 at AH=59h/BX=0000h)
2526
CF unchanged, AL = 00h as DOS v1 style error (AX = 6C00h)
@@ -39,6 +40,9 @@ Notes: the PC LAN Program only supports existence actions (in DL) of 01h,
3940
DOS v1 style error sets AL = 00h (thus AX = 6C00h) but leaves CF
4041
unchanged so it is good practice to initialise CF set before the
4142
int 21h call
43+
MS-DOS v4.01 and lDOS accept bit 0 in DH set, all other bits must be
44+
zero or an error 0001h is generated
45+
MS-DOS v4.01 and lDOS accept any value in AL
4246
BUG: this function has bugs (at least in DOS 5.0 and 6.2) when used with
4347
drives handled via the network redirector (INT 2F/AX=112Eh):
4448
- CX (attribute) is not passed to the redirector if DL=11h,
@@ -72,4 +76,3 @@ Bit(s) Description (Table 01770)
7276
0000 fail
7377
0001 open
7478
0010 replace/open
75-

0 commit comments

Comments
 (0)