comparison blastem.c @ 718:eaba6789f316

Update vscroll latch implementation to be more in line with what Eke-Eke has observed. Revert the change to vdp_cycles_to_line because it breaks hints on line 0. H-Int timing is still a little messed up, but the previous change made things worse.
author Michael Pavone <pavone@retrodev.com>
date Wed, 20 May 2015 10:35:03 -0700
parents 22dbdf50d33c
children 019d27995e32
comparison
equal deleted inserted replaced
717:22dbdf50d33c 718:eaba6789f316
245 } 245 }
246 gen->frame_end = vdp_cycles_to_frame_end(v_context); 246 gen->frame_end = vdp_cycles_to_frame_end(v_context);
247 context->sync_cycle = gen->frame_end; 247 context->sync_cycle = gen->frame_end;
248 //printf("Set sync cycle to: %d @ %d, vcounter: %d, hslot: %d\n", context->sync_cycle, context->current_cycle, v_context->vcounter, v_context->hslot); 248 //printf("Set sync cycle to: %d @ %d, vcounter: %d, hslot: %d\n", context->sync_cycle, context->current_cycle, v_context->vcounter, v_context->hslot);
249 if (context->int_ack) { 249 if (context->int_ack) {
250 printf("acknowledging %d @ %d:%d, vcounter: %d, hslot: %d\n", context->int_ack, context->current_cycle, v_context->cycles, v_context->vcounter, v_context->hslot); 250 //printf("acknowledging %d @ %d:%d, vcounter: %d, hslot: %d\n", context->int_ack, context->current_cycle, v_context->cycles, v_context->vcounter, v_context->hslot);
251 vdp_int_ack(v_context, context->int_ack); 251 vdp_int_ack(v_context, context->int_ack);
252 context->int_ack = 0; 252 context->int_ack = 0;
253 } 253 }
254 adjust_int_cycle(context, v_context); 254 adjust_int_cycle(context, v_context);
255 if (address) { 255 if (address) {