diff genesis.c @ 1288:94f32d534bed

Minor fix to hacky refresh emulation code to more closely match my intent
author Michael Pavone <pavone@retrodev.com>
date Sun, 19 Mar 2017 11:14:34 -0700
parents ca0383656a82
children f17fe0d00626
line wrap: on
line diff
--- a/genesis.c	Sun Mar 19 00:34:15 2017 -0700
+++ b/genesis.c	Sun Mar 19 11:14:34 2017 -0700
@@ -323,7 +323,9 @@
 			context->current_cycle += m68k_cycle_diff;
 #ifdef REFRESH_EMULATION
 			last_sync_cycle = context->current_cycle;
-			refresh_counter = 0;
+			if (vdp_port >= 4 && vdp_port < 8) {
+				refresh_counter = 0;
+			}
 #endif
 			//Lock the Z80 out of the bus until the VDP access is complete
 			gen->bus_busy = 1;