Mercurial > repos > blastem
diff blastem.c @ 458:848a3db9d0b0
Remove extra 68K/VDP cycle sync
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 08 Sep 2013 20:47:01 -0700 |
parents | b491df8bdbc0 |
children | a1d298119153 |
line wrap: on
line diff
--- 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);