Skip to content

Commit 79f1774

Browse files
authored
Merge pull request #117 from ecm-pushbx/ecm-2026-06a
ecm 2026-06a
2 parents 729e05b + 359b062 commit 79f1774

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

source/Interrupt List/INT 21 DOS Function Calls/INT 215F07 DOS 5 ENABLE DRIVE.txt renamed to source/Interrupt List/INT 21 DOS Function Calls/INT 215F07 DOS 4 ENABLE DRIVE.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,22 @@
55
Flag: n/a
66
----------------------------------------------------------------------------
77

8-
INT 21 - DOS 5+ - ENABLE DRIVE
8+
INT 21 - DOS 4+ - ENABLE DRIVE
99
AX = 5F07h
1010
DL = drive number (0=A:)
1111
Return: CF clear if successful
1212
CF set on error
1313
AX = error code (0Fh) (see #01680 at AH=59h/BX=0000h)
1414
Notes: simply sets the "valid" bit in the drive's CDS
15+
in MS-DOS v4.01 and v5.00, the drive is checked to exist in the
16+
CDS array and it is checked that the DPB pointer's low word
17+
is not zero, see offset 45h in #01643. if these conditions
18+
are met, the offset 43h flag mask 4000h ("physical drive") is
19+
set, otherwise error 000Fh is returned.
1520
this function is not supported by Novell DOS 7 through at least
1621
Update 4, but support was added by Update 13
22+
previous revisions of this entry claimed it was a "DOS 5+"
23+
function, however the 2024 April release of MS-DOS v4.00
24+
source texts under the MIT license show it already existed
1725
SeeAlso: AH=52h,AX=5F08h"DOS"
1826

source/Interrupt List/INT 21 DOS Function Calls/INT 215F08 DOS 5 DISABLE DRIVE.txt renamed to source/Interrupt List/INT 21 DOS Function Calls/INT 215F08 DOS 4 DISABLE DRIVE.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,22 @@
55
Flag: n/a
66
----------------------------------------------------------------------------
77

8-
INT 21 - DOS 5+ - DISABLE DRIVE
8+
INT 21 - DOS 4+ - DISABLE DRIVE
99
AX = 5F08h
1010
DL = drive number (0=A:)
1111
Return: CF clear if successful
1212
CF set on error
1313
AX = error code (0Fh) (see #01680 at AH=59h/BX=0000h)
1414
Notes: simply clears the "valid" bit in the drive's CDS
15+
in MS-DOS v4.01 and v5.00, the drive is checked to exist in the
16+
CDS array and it is checked that the DPB pointer's low word
17+
is not zero, see offset 45h in #01643. if these conditions
18+
are met, the offset 43h flag mask 4000h ("physical drive") is
19+
cleared, otherwise error 000Fh is returned.
1520
this function is not supported by Novell DOS 7 through at least
1621
Update 4, but support was added by Update 13
22+
previous revisions of this entry claimed it was a "DOS 5+"
23+
function, however the 2024 April release of MS-DOS v4.00
24+
source texts under the MIT license show it already existed
1725
SeeAlso: AH=52h,AX=5F07h"DOS"
1826

0 commit comments

Comments
 (0)