From 28bc8d926537f578e09b690d8aef76d327632394 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 19 Mar 2017 11:14:34 -0700 Subject: Minor fix to hacky refresh emulation code to more closely match my intent --- genesis.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'genesis.c') diff --git a/genesis.c b/genesis.c index 7855296..6bec26e 100644 --- a/genesis.c +++ b/genesis.c @@ -323,7 +323,9 @@ static m68k_context * vdp_port_write(uint32_t vdp_port, m68k_context * context, 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; -- cgit v1.2.3