X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico_cmn.c;h=5ce13aaeaadd7339e96d38fc85d5314d746cf52e;hb=53f948c9014404685aaacce497755794c25bc5b6;hp=af696e57c3e262306ad8627328cb245ccdf9762f;hpb=d9653efdf7cd77d61ed81ed692b00115d472d4e2;p=picodrive.git diff --git a/pico/pico_cmn.c b/pico/pico_cmn.c index af696e5..5ce13aa 100644 --- a/pico/pico_cmn.c +++ b/pico/pico_cmn.c @@ -157,6 +157,7 @@ static int PicoFrameHints(void) } // Run scanline: + line_base_cycles = SekCyclesDone(); if (Pico.m.dma_xfers) SekCyclesBurn(CheckDMA()); CPUS_RUN(CYCLES_M68K_LINE); @@ -201,6 +202,7 @@ static int PicoFrameHints(void) // there must be a delay after vblank bit is set and irq is asserted (Mazin Saga) // also delay between F bit (bit 7) is set in SR and IRQ happens (Ex-Mutants) // also delay between last H-int and V-int (Golden Axe 3) + line_base_cycles = SekCyclesDone(); CPUS_RUN(CYCLES_M68K_VINT_LAG); if (pv->reg[1]&0x20) { @@ -253,6 +255,7 @@ static int PicoFrameHints(void) PAD_DELAY(); // Run scanline: + line_base_cycles = SekCyclesDone(); if (Pico.m.dma_xfers) SekCyclesBurn(CheckDMA()); CPUS_RUN(CYCLES_M68K_LINE);