From acdd1fc6ab879b14c23c369006852fd9616aa55c Mon Sep 17 00:00:00 2001 From: Jonathan Campbell Date: Mon, 13 Nov 2017 02:07:34 -0800 Subject: [PATCH] update the timer PC-98 constants to make more sense --- include/timer.h | 2 +- src/hardware/timer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/timer.h b/include/timer.h index 445352a7a..6aac7a0f7 100644 --- a/include/timer.h +++ b/include/timer.h @@ -26,7 +26,7 @@ #define PIT_TICK_RATE_PC98_8MHZ 1996800 -#define PIT_TICK_RATE_PC98_5MHZ 2457600 +#define PIT_TICK_RATE_PC98_10MHZ 2457600 extern unsigned long PIT_TICK_RATE; diff --git a/src/hardware/timer.cpp b/src/hardware/timer.cpp index e4c235b30..f71046a26 100644 --- a/src/hardware/timer.cpp +++ b/src/hardware/timer.cpp @@ -551,7 +551,7 @@ void TIMER_OnEnterPC98(Section*) { ReadHandler[3].Uninstall(); /* TODO: PC-98 has two different rates: 5/10MHz base or 8MHz base. Let the user choose via dosbox.conf */ - PIT_TICK_RATE = PIT_TICK_RATE_PC98_5MHZ; + PIT_TICK_RATE = PIT_TICK_RATE_PC98_10MHZ; /* I/O port map (8254) *