diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-01-03 20:13:51 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-01-03 20:13:51 -0800 |
commit | ba230802d2dc53066d94a70cc27c0ca6cf1502b6 (patch) | |
tree | 320ff25f6e0ac5c13dec6c77d718f2f3b9c1ac90 /blastem.c | |
parent | d57873760390a393e784d1339b1d64564fe83234 (diff) |
Fix bank area access delay for master clock change
Diffstat (limited to 'blastem.c')
-rw-r--r-- | blastem.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -667,7 +667,7 @@ uint8_t z80_read_bank(uint32_t location, void * vcontext) { 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 @@ void *z80_write_bank(uint32_t location, void * vcontext, uint8_t value) { 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 |