diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-01-01 22:52:18 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-01-01 22:52:18 -0800 |
commit | 0611fe0f3eec53148200fc8575bfab7d09a9e6db (patch) | |
tree | c51f2cdca617778a0a1516b09ebe90f10a65d7e9 /blastem.c | |
parent | 758586c1b7feec3c4fa3761ed17d1a6ea3cbab00 (diff) |
Adjust 68K sync cycle when mclk_target gets adjusted
Diffstat (limited to 'blastem.c')
-rw-r--r-- | blastem.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |