Mercurial > repos > blastem
comparison z80_to_x86.c @ 844:74e161fe7d39
Small tweaks to timing of 68K/Z80 interactions based on latest tests
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 31 Oct 2015 13:49:27 -0700 |
parents | ba93a3941300 |
children | adeb6465ad53 |
comparison
equal
deleted
inserted
replaced
843:715475788e93 | 844:74e161fe7d39 |
---|---|
2628 void z80_clear_busreq(z80_context * context, uint32_t cycle) | 2628 void z80_clear_busreq(z80_context * context, uint32_t cycle) |
2629 { | 2629 { |
2630 z80_run(context, cycle); | 2630 z80_run(context, cycle); |
2631 context->busreq = 0; | 2631 context->busreq = 0; |
2632 context->busack = 0; | 2632 context->busack = 0; |
2633 //there appears to be at least a 1 Z80 cycle delay between busreq | |
2634 //being released and resumption of execution | |
2635 context->current_cycle += context->options->gen.clock_divider; | |
2633 } | 2636 } |
2634 | 2637 |
2635 uint8_t z80_get_busack(z80_context * context, uint32_t cycle) | 2638 uint8_t z80_get_busack(z80_context * context, uint32_t cycle) |
2636 { | 2639 { |
2637 z80_run(context, cycle); | 2640 z80_run(context, cycle); |