File tree Expand file tree Collapse file tree
source/Interrupt List/INT 21 DOS Function Calls Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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:)
1111Return: CF clear if successful
1212 CF set on error
1313 AX = error code (0Fh) (see #01680 at AH=59h/BX=0000h)
1414Notes: 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
1725SeeAlso: AH=52h,AX=5F08h"DOS"
1826
Original file line number Diff line number Diff line change 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:)
1111Return: CF clear if successful
1212 CF set on error
1313 AX = error code (0Fh) (see #01680 at AH=59h/BX=0000h)
1414Notes: 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
1725SeeAlso: AH=52h,AX=5F07h"DOS"
1826
You can’t perform that action at this time.
0 commit comments