diff options
-rw-r--r-- | src/devices/cpu/z80/kp64.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/devices/cpu/z80/kp64.cpp b/src/devices/cpu/z80/kp64.cpp index f1e419e7286..aac78425951 100644 --- a/src/devices/cpu/z80/kp64.cpp +++ b/src/devices/cpu/z80/kp64.cpp @@ -189,8 +189,12 @@ u16 kp64_device::count_value() const noexcept void kp64_device::reload_count() { m_count = BIT(m_status, 5) ? 0xffff : m_cr; - if (BIT(m_status, 0)) + if (BIT(m_status, 0)) { + if(m_cr == 0) + m_cr = 0xffff; + m_count_timer->adjust(clocks_to_attotime(u32(m_count) + 1)); + } // Count is now started whether or not it was before m_reload = false; |