Mercurial > repos > blastem
comparison z80_to_x86.c @ 670:f4f3e74b0ce6
Restore Z80 interrupt pulse duration and make a small improvement to debug print output
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 03 Jan 2015 18:49:07 -0800 |
parents | 5439ae7946ca |
children | 41a399c11ef1 |
comparison
equal
deleted
inserted
replaced
669:7a9a7c96cb22 | 670:f4f3e74b0ce6 |
---|---|
2252 context->int_cycle = context->int_pulse_start < context->int_enable_cycle ? context->int_enable_cycle : context->int_pulse_start; | 2252 context->int_cycle = context->int_pulse_start < context->int_enable_cycle ? context->int_enable_cycle : context->int_pulse_start; |
2253 } else { | 2253 } else { |
2254 context->int_cycle = CYCLE_NEVER; | 2254 context->int_cycle = CYCLE_NEVER; |
2255 } | 2255 } |
2256 context->target_cycle = context->sync_cycle < context->int_cycle ? context->sync_cycle : context->int_cycle; | 2256 context->target_cycle = context->sync_cycle < context->int_cycle ? context->sync_cycle : context->int_cycle; |
2257 dprintf("Running Z80 from cycle %d to cycle %d. Int cycle: %d\n", context->current_cycle, context->sync_cycle, context->int_cycle); | 2257 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); |
2258 context->options->run(context); | 2258 context->options->run(context); |
2259 dprintf("Z80 ran to cycle %d\n", context->current_cycle); | 2259 dprintf("Z80 ran to cycle %d\n", context->current_cycle); |
2260 } | 2260 } |
2261 if (context->busreq) { | 2261 if (context->busreq) { |
2262 context->busack = 1; | 2262 context->busack = 1; |