mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
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:
parent
89fea1e972
commit
a12b1b29cc
5 changed files with 122 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue