Mercurial > repos > blastem
diff segacd.c @ 2674:07cc0f7109f0
Fix an issue in which CD timer interrupts could get missed, at least with the new interpreter
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 09 Mar 2025 22:53:04 -0700 |
parents | c6bc66b16392 |
children |
line wrap: on
line diff
--- a/segacd.c Sat Mar 08 21:09:54 2025 -0800 +++ b/segacd.c Sun Mar 09 22:53:04 2025 -0700 @@ -568,7 +568,7 @@ static uint32_t next_timer_int(segacd_context *cd) { if (cd->timer_pending) { - return cd->stopwatch_cycle; + return cd->m68k->cycles; } if (cd->timer_value) { return cd->stopwatch_cycle + TIMER_TICK_CLKS * cd->timer_value;