From f2c40b9407543c190dabf510d5a9db7557e00c67 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sun, 2 Mar 2008 08:55:04 +0000 Subject: [PATCH] Add way to easy timer 4 check to counter_output. But seems to work. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3113 --- src/hardware/timer.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/hardware/timer.cpp b/src/hardware/timer.cpp index ffc6b1c1..22f0bd90 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.45 2007-11-18 17:09:15 qbix79 Exp $ */ +/* $Id: timer.cpp,v 1.46 2008-03-02 08:55:04 qbix79 Exp $ */ #include #include "dosbox.h" @@ -91,6 +91,11 @@ static bool counter_output(Bitu counter) { if (p->new_mode) return true; index=fmod(index,(double)p->delay); return index*2delay; + case 4: + //Only low on terminal count + // if(fmod(index,(double)p->delay) == 0) return false; //Maybe take one rate tick in consideration + //Easiest solution is to report always high (Space marines uses this mode) + return true; default: LOG(LOG_PIT,LOG_ERROR)("Illegal Mode %d for reading output",p->mode); return true;