changeset 671:8ad39a2b0bce

Fix bank area access delay for master clock change
author Michael Pavone <pavone@retrodev.com>
date Sat, 03 Jan 2015 20:13:51 -0800
parents f4f3e74b0ce6
children 18ef3b61e70b
files blastem.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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