# HG changeset patch # User Mike Pavone # Date 1378698421 25200 # Node ID 848a3db9d0b0467f6534af715348d53371cb56cc # Parent 6a315728fedee87aeadddd0c07d5c4b00b376968 Remove extra 68K/VDP cycle sync diff -r 6a315728fede -r 848a3db9d0b0 blastem.c --- a/blastem.c Sun Sep 08 20:46:25 2013 -0700 +++ b/blastem.c Sun Sep 08 20:47:01 2013 -0700 @@ -347,7 +347,6 @@ blocked = 0; } } - context->current_cycle = v_context->cycles / MCLKS_PER_68K; } else { adjust_int_cycle(context, v_context); } @@ -356,7 +355,7 @@ exit(1); } if (v_context->cycles != before_cycle) { - //printf("68K paused for %d cycles at cycle %d\n", v_context->cycles / MCLKS_PER_68K - context->current_cycle, context->current_cycle); + //printf("68K paused for %d (%d) cycles at cycle %d (%d)\n", v_context->cycles / MCLKS_PER_68K - context->current_cycle, v_context->cycles - before_cycle, context->current_cycle, before_cycle); context->current_cycle = v_context->cycles / MCLKS_PER_68K; } } else if (vdp_port < 0x18) { @@ -420,7 +419,6 @@ value = vdp_hv_counter_read(v_context); //printf("HV Counter: %X at cycle %d\n", value, v_context->cycles); } - context->current_cycle = v_context->cycles/MCLKS_PER_68K; } else { printf("Illegal read from PSG or test register port %X\n", vdp_port); exit(1);