X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FPico.c;h=e2b16a20251e4f22e6de834b18398bb88c9f643c;hb=2270612aa7ee7d04549e95c2ab4d72f6aa67fa8d;hp=04a0b97e66058e6378492eda21a5cddd172e4bda;hpb=d9153729685381acb0559d8a4fdca47cb839427a;p=picodrive.git diff --git a/Pico/Pico.c b/Pico/Pico.c index 04a0b97..e2b16a2 100644 --- a/Pico/Pico.c +++ b/Pico/Pico.c @@ -149,7 +149,6 @@ int PicoReset(int hard) if (PicoMCD & 1) { PicoResetMCD(hard); - SRam.data = 0; return 0; } @@ -195,6 +194,8 @@ int PicoReset(int hard) // Dino Dini's Soccer malfunctions if SRAM is not filled with 0xff if (strncmp((char *)Pico.rom+0x150, "IDOND NI'I", 10) == 0) memset(SRam.data, 0xff, sram_size); + dprintf("sram: det: %i; eeprom: %i; start: %06x; end: %06x\n", + (Pico.m.sram_reg>>4)&1, (Pico.m.sram_reg>>2)&1, SRam.start, SRam.end); } Pico.m.sram_reg = SRam.reg_back; // restore sram_reg @@ -430,7 +431,7 @@ static int PicoFrameHints(void) getSamples(y); // Run scanline: - if (Pico.m.dma_bytes) SekCycleCnt+=CheckDMA(); + if (Pico.m.dma_bytes) SekCyclesBurn(CheckDMA()); SekRun(cycles_68k); if ((PicoOpt&4) && Pico.m.z80Run) { if (Pico.m.z80Run & 2) z80CycleAim+=cycles_z80;