From: kub Date: Sat, 18 May 2024 20:00:41 +0000 (+0200) Subject: core vdp, reset fix X-Git-Tag: v2.00~54 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96e5982134e284fa5380bea12a3a8497ea82d577;p=picodrive.git core vdp, reset fix --- diff --git a/pico/pico.c b/pico/pico.c index d913e082..0e7e1d8f 100644 --- a/pico/pico.c +++ b/pico/pico.c @@ -75,13 +75,6 @@ void PicoPower(void) // my MD1 VA6 console has this in IO PicoMem.ioports[1] = PicoMem.ioports[2] = PicoMem.ioports[3] = 0xff; - // powerup default VDP register values from TMSS BIOS - Pico.video.reg[0] = Pico.video.reg[1] = 0x04; - Pico.video.reg[0xc] = 0x81; - Pico.video.reg[0xf] = 0x02; - SATaddr = 0x0000; - SATmask = ~0x3ff; - Pico.video.hint_irq = (PicoIn.AHW & PAHW_PICO ? 5 : 4); if (PicoIn.AHW & PAHW_MCD) @@ -91,6 +84,13 @@ void PicoPower(void) PicoPower32x(); PicoReset(); + + // powerup default VDP register values from TMSS BIOS + Pico.video.reg[0] = Pico.video.reg[1] = 0x04; + Pico.video.reg[0xc] = 0x81; + Pico.video.reg[0xf] = 0x02; + SATaddr = 0x0000; + SATmask = ~0x3ff; } PICO_INTERNAL void PicoDetectRegion(void) diff --git a/pico/videoport.c b/pico/videoport.c index 0a05348d..4adf7a7e 100644 --- a/pico/videoport.c +++ b/pico/videoport.c @@ -1180,7 +1180,7 @@ void PicoVideoReset(void) Pico.m.dirtyPal = 1; PicoDrawBgcDMA(NULL, 0, 0, 0, 0); - PicoVideoFIFOMode(0, 1); + PicoVideoFIFOMode(Pico.video.reg[1]&0x40, Pico.video.reg[12]&1); } void PicoVideoCacheSAT(int load)