comparison genesis.c @ 1373:7cfc9d532e34

Fixed regression from VDP sync changes. Direct color DMA demos are now achieving stable sync again
author Michael Pavone <pavone@retrodev.com>
date Tue, 23 May 2017 23:17:24 -0700
parents d78ef6f4fba2
children 8f404b1fa572
comparison
equal deleted inserted replaced
1372:d78ef6f4fba2 1373:7cfc9d532e34
304 } 304 }
305 //context->current_cycle = v_context->cycles; 305 //context->current_cycle = v_context->cycles;
306 } 306 }
307 } else if(vdp_port < 8) { 307 } else if(vdp_port < 8) {
308 vdp_run_context_full(v_context, context->current_cycle); 308 vdp_run_context_full(v_context, context->current_cycle);
309 before_cycle = v_context->cycles;
309 blocked = vdp_control_port_write(v_context, value); 310 blocked = vdp_control_port_write(v_context, value);
310 if (blocked) { 311 if (blocked) {
311 while (blocked) { 312 while (blocked) {
312 while(v_context->flags & FLAG_DMA_RUN) { 313 while(v_context->flags & FLAG_DMA_RUN) {
313 vdp_run_dma_done(v_context, gen->frame_end); 314 vdp_run_dma_done(v_context, gen->frame_end);