From 0d30787be2f11de293cf372a1c4b89321da68aee Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 30 Apr 2016 08:37:55 -0700 Subject: 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. --- blastem.c | 1 + 1 file changed, 1 insertion(+) (limited to 'blastem.c') diff --git a/blastem.c b/blastem.c index 354fb04..2f9249d 100644 --- a/blastem.c +++ b/blastem.c @@ -166,6 +166,7 @@ void adjust_int_cycle(m68k_context * context, vdp_context * v_context) 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; -- cgit v1.2.3