From d31f24c1c2a7f38bb0b5abe877533668e1b4e9de Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 9 Jul 2017 18:45:08 -0400 Subject: mc14411: Attempted fix for timing regression (nw) Obviously, the cycle time has to be divided by two, not multiplied by two. The divider isn't necessarily an even number, though. --- src/devices/machine/mc14411.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/machine/mc14411.cpp b/src/devices/machine/mc14411.cpp index b31e237b81c..c70041e1c6b 100644 --- a/src/devices/machine/mc14411.cpp +++ b/src/devices/machine/mc14411.cpp @@ -177,7 +177,7 @@ void mc14411_device::arm_timer(int i) int divider = s_counter_divider[i]; if (i < TIMER_F15) divider *= s_divider_select[m_divider]; - attotime half_cycle = 2 * clocks_to_attotime(divider); // 2 flanks per cycle + attotime half_cycle = clocks_to_attotime(divider) / 2; // 2 flanks per cycle m_fx_timer[i]->adjust(half_cycle, i, half_cycle); LOGSETUP(" - arming timer for F%d at %fHz (/%d)\n", i + 1, double(clock()) / divider, divider); } -- cgit v1.2.3