IOCTL Call 9 handled somewhat.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@971
This commit is contained in:
parent
a92e39e7f1
commit
9819287489
1 changed files with 11 additions and 0 deletions
|
@ -58,6 +58,17 @@ bool DOS_IOCTL(void) {
|
|||
DOS_SetError(DOSERR_INVALID_DRIVE);
|
||||
return false;
|
||||
}
|
||||
case 0x09: /* Check if block device remote */
|
||||
drive=reg_bl;if (!drive) drive=dos.current_drive;else drive--;
|
||||
if (Drives[drive]) {
|
||||
reg_dx=0;
|
||||
//TODO Cdrom drives are remote
|
||||
//TODO Set bit 9 on drives that don't support direct I/O
|
||||
return true;
|
||||
} else {
|
||||
DOS_SetError(DOSERR_INVALID_DRIVE);
|
||||
return false;
|
||||
}
|
||||
case 0x0D: /* Generic block device request */
|
||||
{
|
||||
PhysPt ptr = SegPhys(ds)+reg_dx;
|
||||
|
|
Loading…
Add table
Reference in a new issue