Mercurial > repos > blastem
comparison blastem.c @ 700:72ab94527a8a
Tiny cleanup
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 11 May 2015 20:31:59 -0700 |
parents | 7f96bd1cb1be |
children | 22dbdf50d33c |
comparison
equal
deleted
inserted
replaced
699:d8a1fdec68fc | 700:72ab94527a8a |
---|---|
235 gen->ym->current_cycle -= mclks; | 235 gen->ym->current_cycle -= mclks; |
236 gen->psg->cycles -= mclks; | 236 gen->psg->cycles -= mclks; |
237 if (gen->ym->write_cycle != CYCLE_NEVER) { | 237 if (gen->ym->write_cycle != CYCLE_NEVER) { |
238 gen->ym->write_cycle = gen->ym->write_cycle >= mclks ? gen->ym->write_cycle - mclks : 0; | 238 gen->ym->write_cycle = gen->ym->write_cycle >= mclks ? gen->ym->write_cycle - mclks : 0; |
239 } | 239 } |
240 gen->frame_end = vdp_cycles_to_frame_end(v_context); | 240 } |
241 } else { | 241 gen->frame_end = vdp_cycles_to_frame_end(v_context); |
242 gen->frame_end = vdp_cycles_to_frame_end(v_context); | |
243 } | |
244 context->sync_cycle = gen->frame_end; | 242 context->sync_cycle = gen->frame_end; |
245 //printf("Set sync cycle to: %d @ %d, vcounter: %d, hslot: %d\n", context->sync_cycle, context->current_cycle, v_context->vcounter, v_context->hslot); | 243 //printf("Set sync cycle to: %d @ %d, vcounter: %d, hslot: %d\n", context->sync_cycle, context->current_cycle, v_context->vcounter, v_context->hslot); |
246 if (context->int_ack) { | 244 if (context->int_ack) { |
247 vdp_int_ack(v_context, context->int_ack); | 245 vdp_int_ack(v_context, context->int_ack); |
248 context->int_ack = 0; | 246 context->int_ack = 0; |