summaryrefslogtreecommitdiff
path: root/blastem.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-05-11 21:19:31 -0700
committerMike Pavone <pavone@retrodev.com>2013-05-11 21:19:31 -0700
commitbd37bedca78611c47b5ecbc7f8a9fbc78c39b910 (patch)
tree39bd119cc2e0798d6fb5813bdf3c77606402b974 /blastem.c
parent6ab97fce20853a8b04f40ff747f3ef108fdaf59a (diff)
Don't update interrupt mask on non-interrupt exceptions
Diffstat (limited to 'blastem.c')
-rw-r--r--blastem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/blastem.c b/blastem.c
index e8abe63..2a5996f 100644
--- a/blastem.c
+++ b/blastem.c
@@ -180,7 +180,7 @@ void sync_z80(z80_context * z_context, uint32_t mclks)
z_context->current_cycle = mclks / MCLKS_PER_Z80;
}
}
-
+uint32_t frame=0;
m68k_context * sync_components(m68k_context * context, uint32_t address)
{
//TODO: Handle sync targets smaller than a single frame
@@ -197,6 +197,7 @@ m68k_context * sync_components(m68k_context * context, uint32_t address)
if (!headless) {
break_on_sync |= wait_render_frame(v_context);
}
+ frame++;
mclks -= MCLKS_PER_FRAME;
vdp_adjust_cycles(v_context, MCLKS_PER_FRAME);
io_adjust_cycles(&gamepad_1, context->current_cycle, MCLKS_PER_FRAME/MCLKS_PER_68K);