summaryrefslogtreecommitdiff
path: root/blastem.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-01-03 20:13:51 -0800
committerMichael Pavone <pavone@retrodev.com>2015-01-03 20:13:51 -0800
commitba230802d2dc53066d94a70cc27c0ca6cf1502b6 (patch)
tree320ff25f6e0ac5c13dec6c77d718f2f3b9c1ac90 /blastem.c
parentd57873760390a393e784d1339b1d64564fe83234 (diff)
Fix bank area access delay for master clock change
Diffstat (limited to 'blastem.c')
-rw-r--r--blastem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/blastem.c b/blastem.c
index b06ccc3..3b02567 100644
--- a/blastem.c
+++ b/blastem.c
@@ -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