# HG changeset patch # User Michael Pavone # Date 1419637613 28800 # Node ID 452ad0b42afa80cf0e608d5c8807d0f633517803 # Parent f0061e3d2ad9ec09b6e52d2ffa76eaa1ea80675a Set int_cycle to CYCLE_NEVER in sync_z80 so that the interrupt routine isn't taken inappropriately now that the kludge in handle_cycle_limit_int has been removed diff -r f0061e3d2ad9 -r 452ad0b42afa blastem.c --- a/blastem.c Fri Dec 26 15:45:31 2014 -0800 +++ b/blastem.c Fri Dec 26 15:46:53 2014 -0800 @@ -195,6 +195,8 @@ while (z_context->current_cycle < z_context->sync_cycle) { if (z_context->iff1 && z_context->current_cycle < (vint_cycle + Z80_VINT_DURATION)) { z_context->int_cycle = vint_cycle < z_context->int_enable_cycle ? z_context->int_enable_cycle : vint_cycle; + } else { + z_context->int_cycle = CYCLE_NEVER; } z_context->target_cycle = z_context->sync_cycle < z_context->int_cycle ? z_context->sync_cycle : z_context->int_cycle; dprintf("Running Z80 from cycle %d to cycle %d. Native PC: %p\n", z_context->current_cycle, z_context->sync_cycle, z_context->native_pc);