32x, reset handling and synchronization changes

This commit is contained in:
kub 2022-10-28 19:55:40 +00:00
parent 7e0c38c9c7
commit eb990fd62a
3 changed files with 6 additions and 23 deletions

View file

@ -192,6 +192,9 @@ int PicoReset(void)
SekFinishIdleDet();
if (PicoIn.opt & POPT_EN_32X)
PicoReset32x();
if (PicoIn.AHW & PAHW_MCD) {
PicoResetMCD();
return 0;
@ -201,9 +204,6 @@ int PicoReset(void)
if (!(PicoIn.opt & POPT_DIS_IDLE_DET))
SekInitIdleDet();
if (PicoIn.opt & POPT_EN_32X)
PicoReset32x();
// reset sram state; enable sram access by default if it doesn't overlap with ROM
Pico.m.sram_reg = 0;
if ((Pico.sv.flags & SRF_EEPROM) || Pico.romsize <= Pico.sv.start)