comparison blastem.c @ 1077:1a66d5165ea7

Cleanup the separation of render backend and VDP code in preparation for having extra debug windows. Make determination of H40/H32 based on number of lines in each mode.
author Michael Pavone <pavone@retrodev.com>
date Mon, 22 Aug 2016 09:46:18 -0700
parents 8c90982429e3
children 2ec5e6eaf81d
comparison
equal deleted inserted replaced
1076:fa6fe03f218a 1077:1a66d5165ea7
270 vdp_run_context(v_context, mclks); 270 vdp_run_context(v_context, mclks);
271 if (v_context->frame != last_frame_num) { 271 if (v_context->frame != last_frame_num) {
272 //printf("reached frame end %d | MCLK Cycles: %d, Target: %d, VDP cycles: %d, vcounter: %d, hslot: %d\n", last_frame_num, mclks, gen->frame_end, v_context->cycles, v_context->vcounter, v_context->hslot); 272 //printf("reached frame end %d | MCLK Cycles: %d, Target: %d, VDP cycles: %d, vcounter: %d, hslot: %d\n", last_frame_num, mclks, gen->frame_end, v_context->cycles, v_context->vcounter, v_context->hslot);
273 last_frame_num = v_context->frame; 273 last_frame_num = v_context->frame;
274 274
275 if (!headless) { 275 if(exit_after){
276 break_on_sync |= wait_render_frame(v_context, frame_limit);
277 } else if(exit_after){
278 --exit_after; 276 --exit_after;
279 if (!exit_after) { 277 if (!exit_after) {
280 exit(0); 278 exit(0);
281 } 279 }
282 } 280 }