From 6906625545dcac3bdf22971aa4cb6e1953965d04 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 12 Nov 2002 19:09:00 +0000 Subject: [PATCH] added support for int 13 04 Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@495 --- src/ints/bios_disk.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/ints/bios_disk.cpp b/src/ints/bios_disk.cpp index da24f797..234debc8 100644 --- a/src/ints/bios_disk.cpp +++ b/src/ints/bios_disk.cpp @@ -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;