# HG changeset patch # User Michael Pavone # Date 1420339747 28800 # Node ID f4f3e74b0ce6411e16708430ef4c7978f68c9b49 # Parent 7a9a7c96cb22ae8bfed8e9e1d0b812f7145fdc00 Restore Z80 interrupt pulse duration and make a small improvement to debug print output diff -r 7a9a7c96cb22 -r f4f3e74b0ce6 blastem.c --- a/blastem.c Sat Jan 03 18:27:29 2015 -0800 +++ b/blastem.c Sat Jan 03 18:49:07 2015 -0800 @@ -170,7 +170,7 @@ { 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 -r 7a9a7c96cb22 -r f4f3e74b0ce6 z80_to_x86.c --- a/z80_to_x86.c Sat Jan 03 18:27:29 2015 -0800 +++ b/z80_to_x86.c Sat Jan 03 18:49:07 2015 -0800 @@ -2254,7 +2254,7 @@ 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); }