1
0
Fork 0

added support for int 13 04

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@495
This commit is contained in:
Peter Veenstra 2002-11-12 19:09:00 +00:00
parent f4b5658765
commit 6906625545

View file

@ -21,7 +21,7 @@
#include "bios.h"
#include "regs.h"
#include "mem.h"
#include "dos_inc.h" /* for Drives[] */
static Bitu call_int13;
static BIOS_Disk * Floppys[2];
@ -36,6 +36,18 @@ static Bitu INT13_SmallHandler(void) {
reg_ah=0xff;
CALLBACK_SCF(true);
break;
case 0x04:
if(Drives[reg_dl]!=NULL) {
reg_ah=0;
CALLBACK_SCF(false);
}
else{
reg_ah=0x80;
CALLBACK_SCF(true);
}
LOG_WARN("INT 13:04 Verify sector used on %d, with result %d",reg_dl,reg_ah);
break;
case 0x08: /* Get Drive Parameters */
LOG_DEBUG("INT13:08:Get Drive parameters not supported failing");
reg_ah=0xff;