summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-10-23 14:13:03 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-10-23 14:13:06 -0400
commit9ae574482039eb503bc57d7af89ed7c78936eafe (patch)
tree0f50095796624c06b34e558fcfbf4678a7bd4750
parent7a42e11ed3a4b06718bbd173b386c48fc842ce8f (diff)
i8155: Regression fix for gldarrow (nw)
-rw-r--r--src/devices/machine/i8155.cpp4
1 files 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);