From 0611fe0f3eec53148200fc8575bfab7d09a9e6db Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 1 Jan 2015 22:52:18 -0800 Subject: Adjust 68K sync cycle when mclk_target gets adjusted --- blastem.c | 1 + 1 file changed, 1 insertion(+) (limited to 'blastem.c') diff --git a/blastem.c b/blastem.c index 46dbdc9..8c375ad 100644 --- a/blastem.c +++ b/blastem.c @@ -307,6 +307,7 @@ m68k_context * sync_components(m68k_context * context, uint32_t address) vdp_run_context(v_context, mclks); } mclk_target = vdp_cycles_to_frame_end(v_context); + context->sync_cycle = mclk_target/MCLKS_PER_68K; } else { //printf("running VDP for %d cycles\n", mclks - v_context->cycles); vdp_run_context(v_context, mclks); -- cgit v1.2.3