i8155: Regression fix for gldarrow (nw)

This commit is contained in:
AJR 2017-10-23 14:13:03 -04:00
parent 7a42e11ed3
commit 9ae5744820

View File

@ -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);