Mercurial > repos > blastem
changeset 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 | 2c8f541af3c5 |
children | dbff641a33df |
files | segacd.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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;