Mercurial > repos > blastem
diff blastem.c @ 362:b7c3facee762
YM2612 WIP update
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 27 May 2013 22:19:11 -0700 |
parents | 9498cfa7f7c8 |
children | 62177cc39049 |
line wrap: on
line diff
--- a/blastem.c Mon May 27 20:56:02 2013 -0700 +++ b/blastem.c Mon May 27 22:19:11 2013 -0700 @@ -198,7 +198,7 @@ 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);