coco3: improve timer calculation (#8223)

This commit is contained in:
tim lindner 2021-06-25 19:13:58 -07:00 committed by GitHub
parent d0458b0c7d
commit a7713cc7ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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