Mercurial > repos > blastem
diff blastem.c @ 995:2bc27415565b
Fix some stuff with interrupt timing. The change in adjust_int_cycle gets Overdrive working again (vint was not being preferred over hint in some cases). One of the changes seems to have broken Fatal Rewind again, but no other regressions that I can see.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 30 Apr 2016 08:37:55 -0700 |
parents | 902c53d9c16f |
children | 784bc1e45e80 |
line wrap: on
line diff
--- a/blastem.c Thu Apr 28 20:20:29 2016 -0700 +++ b/blastem.c Sat Apr 30 08:37:55 2016 -0700 @@ -166,6 +166,7 @@ if ((context->status & 0x7) < 4) { uint32_t next_hint = vdp_next_hint(v_context); if (next_hint != CYCLE_NEVER) { + next_hint = next_hint < context->current_cycle ? context->current_cycle : next_hint; if (next_hint < context->int_cycle) { context->int_cycle = next_hint; context->int_num = 4;