mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
i8155: Regression fix for gldarrow (nw)
This commit is contained in:
parent
7a42e11ed3
commit
9ae5744820
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user