diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-05-27 22:19:11 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-05-27 22:19:11 -0700 |
commit | 69bbe63efc6c692d41db36293da0eafc262ba293 (patch) | |
tree | e894bd18e258a80db202b97bee330718cc899957 /blastem.c | |
parent | 6760bd61f9db412c08668fd56815351a24d4d30d (diff) |
YM2612 WIP update
Diffstat (limited to 'blastem.c')
-rw-r--r-- | blastem.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -198,7 +198,7 @@ m68k_context * sync_components(m68k_context * context, uint32_t address) sync_z80(z_context, mclks); if (mclks >= mclks_per_frame) { ym_run(gen->ym, context->current_cycle); - gen->ym->current_cycle -= mclks_per_frame/MCLKS_PER_68K; + gen->ym->current_cycle -= ((mclks_per_frame/MCLKS_PER_68K) / 6) * 6; //printf("reached frame end | 68K Cycles: %d, MCLK Cycles: %d\n", context->current_cycle, mclks); vdp_run_context(v_context, mclks_per_frame); psg_run(gen->psg, mclks/MCLKS_PER_PSG); |