# HG changeset patch # User Michael Pavone # Date 1420344831 28800 # Node ID 8ad39a2b0bce859b72e639a8bbfe7e64a0586d40 # Parent f4f3e74b0ce6411e16708430ef4c7978f68c9b49 Fix bank area access delay for master clock change diff -r f4f3e74b0ce6 -r 8ad39a2b0bce blastem.c --- a/blastem.c Sat Jan 03 18:49:07 2015 -0800 +++ b/blastem.c Sat Jan 03 20:13:51 2015 -0800 @@ -667,7 +667,7 @@ { z80_context * context = vcontext; //typical delay from bus arbitration - context->current_cycle += 3; + context->current_cycle += 3 * MCLKS_PER_Z80; location &= 0x7FFF; //TODO: add cycle for an access right after a previous one @@ -688,7 +688,7 @@ { z80_context * context = vcontext; //typical delay from bus arbitration - context->current_cycle += 3; + context->current_cycle += 3 * MCLKS_PER_Z80; location &= 0x7FFF; //TODO: add cycle for an access right after a previous one //TODO: block Z80 if VDP has the bus or the 68K is blocked on a VDP access