mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-04 23:07:46 -04:00
core vdp, reset fix
This commit is contained in:
parent
2531b6fd16
commit
96e5982134
2 changed files with 8 additions and 8 deletions
14
pico/pico.c
14
pico/pico.c
|
@ -75,13 +75,6 @@ void PicoPower(void)
|
||||||
// my MD1 VA6 console has this in IO
|
// my MD1 VA6 console has this in IO
|
||||||
PicoMem.ioports[1] = PicoMem.ioports[2] = PicoMem.ioports[3] = 0xff;
|
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);
|
Pico.video.hint_irq = (PicoIn.AHW & PAHW_PICO ? 5 : 4);
|
||||||
|
|
||||||
if (PicoIn.AHW & PAHW_MCD)
|
if (PicoIn.AHW & PAHW_MCD)
|
||||||
|
@ -91,6 +84,13 @@ void PicoPower(void)
|
||||||
PicoPower32x();
|
PicoPower32x();
|
||||||
|
|
||||||
PicoReset();
|
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)
|
PICO_INTERNAL void PicoDetectRegion(void)
|
||||||
|
|
|
@ -1180,7 +1180,7 @@ void PicoVideoReset(void)
|
||||||
Pico.m.dirtyPal = 1;
|
Pico.m.dirtyPal = 1;
|
||||||
|
|
||||||
PicoDrawBgcDMA(NULL, 0, 0, 0, 0);
|
PicoDrawBgcDMA(NULL, 0, 0, 0, 0);
|
||||||
PicoVideoFIFOMode(0, 1);
|
PicoVideoFIFOMode(Pico.video.reg[1]&0x40, Pico.video.reg[12]&1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PicoVideoCacheSAT(int load)
|
void PicoVideoCacheSAT(int load)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue