summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author ajrhacker <ajrhacker@users.noreply.github.com>2018-06-23 10:25:52 -0400
committer GitHub <noreply@github.com>2018-06-23 10:25:52 -0400
commitec51f04e72f5c5e911ab101ee0e4a347a5613604 (patch)
treee542b3b4428a74ff5468a63db8ff9cc0c300b7a1
parent9750a481a1786e36c6b242971bc4634e820b0da7 (diff)
parent20f0c7c2a27914a37e05c49fee1c64d543d7739e (diff)
Merge pull request #3687 from sschnelle/6840_div8_fix
6840ptm: fix divide by 8 mode
-rw-r--r--src/devices/machine/6840ptm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/devices/machine/6840ptm.cpp b/src/devices/machine/6840ptm.cpp
index 6ccf8c24565..c89abb2d6bd 100644
--- a/src/devices/machine/6840ptm.cpp
+++ b/src/devices/machine/6840ptm.cpp
@@ -307,6 +307,10 @@ uint16_t ptm6840_device::compute_counter( int counter ) const
else
{
clk = m_external_clock[counter];
+ if (counter == 2)
+ {
+ clk /= m_t3_divisor;
+ }
LOG("Timer #%d external clock freq %f \n", counter + 1, clk);
}
// See how many are left