X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FPico.c;h=d0845e10ef0f0f8f0e52d3df67998cad373e8b50;hb=2433f409129279095926eb00cf8ab429738f80dd;hp=4847f554b37b05b8f20693a82a56dad53795efdb;hpb=3d48f1437fc5e2c556ed900ae25fd4a255d52922;p=picodrive.git diff --git a/Pico/Pico.c b/Pico/Pico.c index 4847f55..d0845e1 100644 --- a/Pico/Pico.c +++ b/Pico/Pico.c @@ -72,7 +72,7 @@ int PicoReset(int hard) PicoMemReset(); SekReset(); // s68k doesn't have the TAS quirk, so we just globally set normal TAS handler in MCD mode (used by Batman games). - CycloneSetRealTAS(PicoMCD & 1); + SekSetRealTAS(PicoMCD & 1); SekCycleCntT=0; z80_reset(); @@ -486,7 +486,13 @@ static int PicoFrameSimple(void) int y=0,line=0,lines=0,lines_step=0,sects; int cycles_68k_vblock,cycles_68k_block; - if(Pico.m.pal) { + // we don't emulate DMA timing in this mode + if (Pico.m.dma_bytes) { + Pico.m.dma_bytes=0; + Pico.video.status&=~2; + } + + if (Pico.m.pal) { // M68k cycles/frame: 152009.78 if(pv->reg[1]&8) { // 240 lines cycles_68k_block = (int) ((double) OSC_PAL / 7 / 50 / 312 * 15 + 0.4); // 16 sects, 16*15=240, 7308