summaryrefslogtreecommitdiff
path: root/blastem.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-09-08 20:47:01 -0700
committerMike Pavone <pavone@retrodev.com>2013-09-08 20:47:01 -0700
commit1b9e30c264d0af85666d89e8d62d054d847d2628 (patch)
treeb3bab14f749480b8db0732394f6cc72f7e29a07b /blastem.c
parent6f68fce01e5256d87c1f8ff48d3d397b646c4a4f (diff)
Remove extra 68K/VDP cycle sync
Diffstat (limited to 'blastem.c')
-rw-r--r--blastem.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/blastem.c b/blastem.c
index a2cae6c..c093402 100644
--- a/blastem.c
+++ b/blastem.c
@@ -347,7 +347,6 @@ m68k_context * vdp_port_write(uint32_t vdp_port, m68k_context * context, uint16_
blocked = 0;
}
}
- context->current_cycle = v_context->cycles / MCLKS_PER_68K;
} else {
adjust_int_cycle(context, v_context);
}
@@ -356,7 +355,7 @@ m68k_context * vdp_port_write(uint32_t vdp_port, m68k_context * context, uint16_
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 @@ uint16_t vdp_port_read(uint32_t vdp_port, m68k_context * context)
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);