32x: initial code (security code passes)

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@772 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2009-09-11 11:29:19 +00:00
parent 000f53350c
commit be2c420828
8 changed files with 340 additions and 5 deletions

View file

@ -40,6 +40,7 @@ void PicoInit(void)
PicoInitMCD();
PicoSVPInit();
Pico32xInit();
}
// to be called once on emu exit
@ -187,6 +188,11 @@ int PicoReset(void)
if (!(PicoOpt & POPT_DIS_IDLE_DET))
SekInitIdleDet();
if (!(PicoOpt & POPT_DIS_32X)) {
PicoReset32x();
return 0;
}
// reset sram state; enable sram access by default if it doesn't overlap with ROM
Pico.m.sram_reg = 0;
if ((SRam.flags & SRF_EEPROM) || Pico.romsize <= SRam.start)