mirror of
https://github.com/holub/mame
synced 2025-04-21 16:01:56 +03:00
coco3: improve timer calculation (#8223)
This commit is contained in:
parent
d0458b0c7d
commit
a7713cc7ea
@ -479,11 +479,13 @@ void gime_device::reset_timer(void)
|
||||
|
||||
if (timer_type() == GIME_TIMER_63USEC)
|
||||
{
|
||||
m_gime_clock_timer->adjust(attotime::from_usec(63.695) * m_timer_value);
|
||||
// master clock divided by 8, divided by 228, divided by 2
|
||||
m_gime_clock_timer->adjust(attotime::from_hz(clock()) * 3648 * m_timer_value);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_gime_clock_timer->adjust(attotime::from_nsec(279.365) * m_timer_value);
|
||||
// master clock divided by 8, divided by 2
|
||||
m_gime_clock_timer->adjust(attotime::from_hz(clock()) * 16 * m_timer_value);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user