summaryrefslogtreecommitdiff
path: root/blastem.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-01-01 22:52:18 -0800
committerMichael Pavone <pavone@retrodev.com>2015-01-01 22:52:18 -0800
commit0611fe0f3eec53148200fc8575bfab7d09a9e6db (patch)
treec51f2cdca617778a0a1516b09ebe90f10a65d7e9 /blastem.c
parent758586c1b7feec3c4fa3761ed17d1a6ea3cbab00 (diff)
Adjust 68K sync cycle when mclk_target gets adjusted
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 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);