summaryrefslogtreecommitdiff
path: root/blastem.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-04-30 08:37:55 -0700
committerMichael Pavone <pavone@retrodev.com>2016-04-30 08:37:55 -0700
commit0d30787be2f11de293cf372a1c4b89321da68aee (patch)
treec82f7a8c2650534d737bd18d592156c040806293 /blastem.c
parent8f5fa225779cfd021e7f7ae6dd7e3a91f9297cea (diff)
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.
Diffstat (limited to 'blastem.c')
-rw-r--r--blastem.c1
1 files changed, 1 insertions, 0 deletions
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;