X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico.c;h=7c7a93e7189f4928a9fd16ac1090c5784f84c937;hb=5ac99d9adf88799fd2de3ec787409ed1f2255168;hp=b8e76b380f936a66fd1e32d983ed68580d956520;hpb=ed4402a7dfd12dbbf34c547b438a671ae8114197;p=picodrive.git diff --git a/pico/pico.c b/pico/pico.c index b8e76b3..7c7a93e 100644 --- a/pico/pico.c +++ b/pico/pico.c @@ -54,6 +54,7 @@ void PicoExit(void) if (SRam.data) free(SRam.data); + pevt_dump(); } void PicoPower(void) @@ -145,6 +146,10 @@ int PicoReset(void) if (Pico.romsize <= 0) return 1; +#if defined(CPU_CMP_R) || defined(CPU_CMP_W) || defined(DRC_CMP) + PicoOpt |= POPT_DIS_VDP_FIFO|POPT_DIS_IDLE_DET; +#endif + /* must call now, so that banking is reset, and correct vectors get fetched */ if (PicoResetHook) PicoResetHook(); @@ -160,7 +165,7 @@ int PicoReset(void) SekReset(); // s68k doesn't have the TAS quirk, so we just globally set normal TAS handler in MCD mode (used by Batman games). SekSetRealTAS(PicoAHW & PAHW_MCD); - SekCycleCntT=0; + SekCycleCntT = SekCycleCnt = SekCycleAim = 0; if (PicoAHW & PAHW_MCD) // needed for MCD to reset properly, probably some bug hides behind this.. @@ -219,9 +224,6 @@ void PicoLoopPrepare(void) Pico.m.dirtyPal = 1; rendstatus_old = -1; - - if (PicoAHW & PAHW_32X) - p32x_timers_recalc(); }