Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coco3: timer calculation wrong by a factor of 2 #8365

Merged
merged 1 commit into from
Jul 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/mame/video/gime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@

ARKANOID: Abuses TIMER = 0 for ball ricochet sounds

POP*STAR PILOT: Timer is synchronized with scanlines.

**********************************************************************/


Expand Down Expand Up @@ -480,12 +482,12 @@ void gime_device::reset_timer(void)
if (timer_type() == GIME_TIMER_63USEC)
{
// master clock divided by 8, divided by 228, divided by 2
m_gime_clock_timer->adjust(attotime::from_hz(clock()) * 3648 * m_timer_value);
m_gime_clock_timer->adjust(attotime::from_hz(clock()) * 3648 * m_timer_value / 2);
}
else
{
// master clock divided by 8, divided by 2
m_gime_clock_timer->adjust(attotime::from_hz(clock()) * 16 * m_timer_value);
m_gime_clock_timer->adjust(attotime::from_hz(clock()) * 16 * m_timer_value / 2);
}
}
else
Expand Down