From 52fb42428540e149d7ae6b53bdb52603b8e1947f Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 4 Jan 2015 12:25:33 -0800 Subject: Removed some code that tried to deal with the 68K not using master clocks that is no longer necessary --- blastem.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'blastem.c') diff --git a/blastem.c b/blastem.c index bf8a333..21e59ab 100644 --- a/blastem.c +++ b/blastem.c @@ -217,8 +217,8 @@ m68k_context * sync_components(m68k_context * context, uint32_t address) if (gen->ym->write_cycle != CYCLE_NEVER) { gen->ym->write_cycle = gen->ym->write_cycle >= mclk_target ? gen->ym->write_cycle - mclk_target : 0; } - //printf("reached frame end | 68K Cycles: %d, MCLK Cycles: %d\n", context->current_cycle, mclks); vdp_run_context(v_context, mclk_target); + //printf("reached frame end | MCLK Cycles: %d, Target: %d, VDP cycles: %d\n", mclks, mclk_target, v_context->cycles); if (!headless) { break_on_sync |= wait_render_frame(v_context, frame_limit); @@ -290,9 +290,6 @@ m68k_context * vdp_port_write(uint32_t vdp_port, m68k_context * context, uint16_ vdp_run_dma_done(v_context, mclk_target); if (v_context->cycles >= mclk_target) { context->current_cycle = v_context->cycles; - if (context->current_cycle < mclk_target) { - context->current_cycle += MCLKS_PER_68K; - } sync_components(context, 0); } } @@ -307,9 +304,6 @@ m68k_context * vdp_port_write(uint32_t vdp_port, m68k_context * context, uint16_ vdp_run_dma_done(v_context, mclk_target); if (v_context->cycles >= mclk_target) { context->current_cycle = v_context->cycles; - if (context->current_cycle < mclk_target) { - context->current_cycle += MCLKS_PER_68K; - } sync_components(context, 0); } } -- cgit v1.2.3