diff blastem.c @ 321:146c87616b05

Don't update interrupt mask on non-interrupt exceptions
author Mike Pavone <pavone@retrodev.com>
date Sat, 11 May 2013 21:19:31 -0700
parents e5e8b48ad157
children 1b00258b1f29
line wrap: on
line diff
--- a/blastem.c	Sat May 11 01:57:41 2013 -0700
+++ b/blastem.c	Sat May 11 21:19:31 2013 -0700
@@ -180,7 +180,7 @@
 		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 @@
 		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);