# HG changeset patch # User Michael Pavone # Date 1489947274 25200 # Node ID 94f32d534bed8e0a0f321d8ec910eb3a7385bf25 # Parent 65f03a0a426a0888b625c3310a276048bd7be12e Minor fix to hacky refresh emulation code to more closely match my intent diff -r 65f03a0a426a -r 94f32d534bed genesis.c --- 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;