From 9ae574482039eb503bc57d7af89ed7c78936eafe Mon Sep 17 00:00:00 2001 From: AJR Date: Mon, 23 Oct 2017 14:13:03 -0400 Subject: i8155: Regression fix for gldarrow (nw) --- src/devices/machine/i8155.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/machine/i8155.cpp b/src/devices/machine/i8155.cpp index 9fb4251bb11..8fbcf1462ce 100644 --- a/src/devices/machine/i8155.cpp +++ b/src/devices/machine/i8155.cpp @@ -147,6 +147,8 @@ inline void i8155_device::timer_stop_count() inline void i8155_device::timer_reload_count() { + m_count_loaded = m_count_length; + // valid counts range from 2 to 3FFF if ((m_count_length & 0x3fff) < 2) { @@ -154,8 +156,6 @@ inline void i8155_device::timer_reload_count() return; } - m_count_loaded = m_count_length; - // begin the odd half of the count, with one extra cycle if count is odd m_counter = (m_count_loaded & 0x3ffe) | 1; m_count_extra = BIT(m_count_loaded, 0); -- cgit v1.2.3