Changeset 589 in xtideuniversalbios for trunk/Assembly_Library/Src/File
- Timestamp:
- May 22, 2016, 12:26:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/File/Drive.asm
r526 r589 86 86 xchg dx, ax ; Default drive to DL 87 87 call Drive_SetDefaultFromDL 88 eMOVZX cx, al; Number of potentially valid drive letters available89 cmp cl,3290 jb SHORT .Return91 mov cl, 32 92 ALIGN JUMP_ALIGN, ret 93 .Return: 88 cmp al, 32 ; Number of potentially valid drive letters available 89 jb SHORT .Below32 90 mov al, 32 91 .Below32: 92 cbw 93 xchg cx, ax 94 94 ret 95 95 … … 133 133 134 134 inc dx ; Default drive is 00h and first drive is 01h 135 mov ax, CHECK_IF_BLOCK_DEVICE_REMOTE ; Needs DOS 3.1+ 136 mov bx, dx 137 push dx 138 int DOS_INTERRUPT_21h 139 pop dx 140 jnc SHORT .DriveIsValid 141 cmp ax, ERR_DOS_INVALID_DRIVE 142 je SHORT .DriveIsNotValid 143 ; Fall back to old method if ERR_DOS_FUNCTION_NUMBER_INVALID 144 135 145 mov ah, GET_DOS_DRIVE_PARAMETER_BLOCK_FOR_SPECIFIC_DRIVE 136 146 int DOS_INTERRUPT_21h 147 .DriveIsValid: 148 .DriveIsNotValid: 137 149 dec dx 138 150 test al, al
Note:
See TracChangeset
for help on using the changeset viewer.