12-in-1 + realtec mapper

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@374 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2008-03-07 19:05:37 +00:00
parent 89fea1e972
commit a12b1b29cc
5 changed files with 122 additions and 16 deletions

View file

@ -64,6 +64,9 @@ int PicoReset(int hard)
if (Pico.romsize<=0) return 1;
/* must call now, so that banking is reset, and correct vectors get fetched */
if (PicoResetHook) PicoResetHook();
PicoMemReset();
SekReset();
// s68k doesn't have the TAS quirk, so we just globally set normal TAS handler in MCD mode (used by Batman games).
@ -79,7 +82,7 @@ int PicoReset(int hard)
Pico.video.pending_ints=0;
emustatus = 0;
if(hard) {
if (hard) {
// clear all memory of the emulated machine
memset(&Pico.ram,0,(unsigned int)&Pico.rom-(unsigned int)&Pico.ram);
}
@ -142,8 +145,6 @@ int PicoReset(int hard)
PsndReset(); // pal must be known here
if (PicoResetHook) PicoResetHook();
if (PicoMCD & 1) {
PicoResetMCD(hard);
return 0;