Mercurial > repos > blastem
diff blastem.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 | f2cd380adebe |
children | 98d7b6073163 |
line wrap: on
line diff
--- a/blastem.c Sat Oct 31 13:24:39 2015 -0700 +++ b/blastem.c Sat Oct 31 13:49:27 2015 -0700 @@ -473,6 +473,8 @@ { genesis_context * gen = context->system; if (location < 0x10000) { + //Access to Z80 memory incurs a one 68K cycle wait state + context->current_cycle += MCLKS_PER_68K; if (!z80_enabled || z80_get_busack(gen->z80, context->current_cycle)) { location &= 0x7FFF; if (location < 0x4000) { @@ -591,6 +593,8 @@ uint8_t value; genesis_context *gen = context->system; if (location < 0x10000) { + //Access to Z80 memory incurs a one 68K cycle wait state + context->current_cycle += MCLKS_PER_68K; if (!z80_enabled || z80_get_busack(gen->z80, context->current_cycle)) { location &= 0x7FFF; if (location < 0x4000) {