diff --git a/src/devices/machine/z80ctc.cpp b/src/devices/machine/z80ctc.cpp index 74adf998feb..307da7d534a 100644 --- a/src/devices/machine/z80ctc.cpp +++ b/src/devices/machine/z80ctc.cpp @@ -373,7 +373,10 @@ u8 z80ctc_channel_device::read() LOG("CTC clock %f\n", period.as_hz()); - return u8((m_timer->remaining().as_double() / period.as_double()) + 1.0); + if(!m_timer->remaining().is_never()) + return u8((m_timer->remaining().as_double() / period.as_double()) + 1.0); + else + return 0; } }