From 5c86964c65d85124a09f26639bb4b39a0324a73e Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 26 Jan 2004 14:08:16 +0000 Subject: [PATCH] Fixed bug with countervalue being signed Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1601 --- src/ints/bios.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ints/bios.cpp b/src/ints/bios.cpp index 861bd540..4f328978 100644 --- a/src/ints/bios.cpp +++ b/src/ints/bios.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: bios.cpp,v 1.27 2004-01-10 14:03:35 qbix79 Exp $ */ +/* $Id: bios.cpp,v 1.28 2004-01-26 14:08:16 qbix79 Exp $ */ #include #include "dosbox.h" @@ -39,7 +39,7 @@ static Bitu INT70_Handler(void) { IO_Write(0x70,0xc); IO_Read(0x71); if (mem_readb(BIOS_WAIT_FLAG_ACTIVE)) { - Bits count=mem_readd(BIOS_WAIT_FLAG_COUNT); + Bit32u count=mem_readd(BIOS_WAIT_FLAG_COUNT); if (count>997) { mem_writed(BIOS_WAIT_FLAG_COUNT,count-997); } else { @@ -204,6 +204,7 @@ static Bitu INT15_Handler(void) { break; case 0x83: /* BIOS - SET EVENT WAIT INTERVAL */ { + if(reg_al == 0x01) LOG(LOG_BIOS,LOG_WARN)("Bios set event interval cancelled: not handled"); if (mem_readb(BIOS_WAIT_FLAG_ACTIVE)) { reg_ah=0x80; CALLBACK_SCF(true);