Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
1287:65f03a0a426a | 1288:94f32d534bed |
---|---|
321 m68k_cycle_diff += MCLKS_PER_68K; | 321 m68k_cycle_diff += MCLKS_PER_68K; |
322 } | 322 } |
323 context->current_cycle += m68k_cycle_diff; | 323 context->current_cycle += m68k_cycle_diff; |
324 #ifdef REFRESH_EMULATION | 324 #ifdef REFRESH_EMULATION |
325 last_sync_cycle = context->current_cycle; | 325 last_sync_cycle = context->current_cycle; |
326 refresh_counter = 0; | 326 if (vdp_port >= 4 && vdp_port < 8) { |
327 refresh_counter = 0; | |
328 } | |
327 #endif | 329 #endif |
328 //Lock the Z80 out of the bus until the VDP access is complete | 330 //Lock the Z80 out of the bus until the VDP access is complete |
329 gen->bus_busy = 1; | 331 gen->bus_busy = 1; |
330 sync_z80(gen->z80, v_context->cycles); | 332 sync_z80(gen->z80, v_context->cycles); |
331 gen->bus_busy = 0; | 333 gen->bus_busy = 0; |