From 3b2a10e63be5a4d28d1f30d732d691bce3f1b9a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Strohh=C3=A4cker?= Date: Thu, 3 Aug 2006 19:36:12 +0000 Subject: [PATCH] timer fix for 1000 Miglia (hal) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2680 --- src/hardware/timer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/timer.cpp b/src/hardware/timer.cpp index bc2a6763..96cbbcc1 100644 --- a/src/hardware/timer.cpp +++ b/src/hardware/timer.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: timer.cpp,v 1.39 2006-07-10 09:27:37 qbix79 Exp $ */ +/* $Id: timer.cpp,v 1.40 2006-08-03 19:36:12 c2woody Exp $ */ #include #include "dosbox.h" @@ -195,7 +195,6 @@ static void write_latch(Bitu port,Bitu val,Bitu /*iolen*/) { switch (counter) { case 0x00: /* Timer hooked to IRQ 0 */ if (p->new_mode || p->mode == 0 ) { - p->new_mode=false; PIC_AddEvent(PIT0_Event,p->delay); } else LOG(LOG_PIT,LOG_NORMAL)("PIT 0 Timer set without new control word"); LOG(LOG_PIT,LOG_NORMAL)("PIT 0 Timer at %.2f Hz mode %d",1000.0/p->delay,p->mode); @@ -207,6 +206,7 @@ static void write_latch(Bitu port,Bitu val,Bitu /*iolen*/) { default: LOG(LOG_PIT,LOG_ERROR)("PIT:Illegal timer selected for writing"); } + p->new_mode=false; } }