Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
994:4360cb5960c8 | 995:2bc27415565b |
---|---|
164 context->int_num = 6; | 164 context->int_num = 6; |
165 } | 165 } |
166 if ((context->status & 0x7) < 4) { | 166 if ((context->status & 0x7) < 4) { |
167 uint32_t next_hint = vdp_next_hint(v_context); | 167 uint32_t next_hint = vdp_next_hint(v_context); |
168 if (next_hint != CYCLE_NEVER) { | 168 if (next_hint != CYCLE_NEVER) { |
169 next_hint = next_hint < context->current_cycle ? context->current_cycle : next_hint; | |
169 if (next_hint < context->int_cycle) { | 170 if (next_hint < context->int_cycle) { |
170 context->int_cycle = next_hint; | 171 context->int_cycle = next_hint; |
171 context->int_num = 4; | 172 context->int_num = 4; |
172 | 173 |
173 } | 174 } |