diff options
-rw-r--r-- | blastem.c | 2 | ||||
-rw-r--r-- | z80_to_x86.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -170,7 +170,7 @@ void z80_next_int_pulse(z80_context * z_context) { genesis_context * gen = z_context->system; z_context->int_pulse_start = vdp_next_vint_z80(gen->vdp); - z_context->int_pulse_end = z_context->int_pulse_start + Z80_VINT_DURATION; + z_context->int_pulse_end = z_context->int_pulse_start + Z80_VINT_DURATION * MCLKS_PER_Z80; } void sync_z80(z80_context * z_context, uint32_t mclks) diff --git a/z80_to_x86.c b/z80_to_x86.c index 9ae1a7c..68f3b4f 100644 --- a/z80_to_x86.c +++ b/z80_to_x86.c @@ -2254,7 +2254,7 @@ void z80_run(z80_context * context, uint32_t target_cycle) context->int_cycle = CYCLE_NEVER; } context->target_cycle = context->sync_cycle < context->int_cycle ? context->sync_cycle : context->int_cycle; - dprintf("Running Z80 from cycle %d to cycle %d. Int cycle: %d\n", context->current_cycle, context->sync_cycle, context->int_cycle); + dprintf("Running Z80 from cycle %d to cycle %d. Int cycle: %d (%d - %d)\n", context->current_cycle, context->sync_cycle, context->int_cycle, context->int_pulse_start, context->int_pulse_end); context->options->run(context); dprintf("Z80 ran to cycle %d\n", context->current_cycle); } |