X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico.c;h=859935e7e3b52c3ad44603a4c6b7a3a754e754b1;hb=531a8f38839713938a441f9287724e5e72c492c3;hp=9a1facaa8b87bf6773b0274f1d257dce95806ffa;hpb=6d7979571d08d7b020022fa169a34a29fc20dfdc;p=picodrive.git diff --git a/pico/pico.c b/pico/pico.c index 9a1faca..859935e 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) @@ -69,6 +70,9 @@ void PicoPower(void) Pico.video.pending_ints=0; z80_reset(); + // my MD1 VA6 console has this in IO + Pico.ioports[1] = Pico.ioports[2] = Pico.ioports[3] = 0xff; + // default VDP register values (based on Fusion) Pico.video.reg[0] = Pico.video.reg[1] = 0x04; Pico.video.reg[0xc] = 0x81; @@ -145,7 +149,7 @@ int PicoReset(void) if (Pico.romsize <= 0) return 1; -#ifdef DRC_CMP +#if defined(CPU_CMP_R) || defined(CPU_CMP_W) || defined(DRC_CMP) PicoOpt |= POPT_DIS_VDP_FIFO|POPT_DIS_IDLE_DET; #endif @@ -164,7 +168,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..