+}\r
+\r
+int PicoReset(void)\r
+{\r
+ unsigned char sram_reg=Pico.m.sram_reg; // must be preserved\r
+\r
+ if (Pico.romsize<=0) return 1;\r
+\r
+ /* must call now, so that banking is reset, and correct vectors get fetched */\r
+ if (PicoResetHook) PicoResetHook();\r
+\r
+ PicoMemReset();\r
+ SekReset();\r
+ // s68k doesn't have the TAS quirk, so we just globally set normal TAS handler in MCD mode (used by Batman games).\r
+ SekSetRealTAS(PicoAHW & PAHW_MCD);\r
+ SekCycleCntT=0;\r
+\r
+ if (PicoAHW & PAHW_MCD)\r
+ // needed for MCD to reset properly, probably some bug hides behind this..\r
+ memset(Pico.ioports,0,sizeof(Pico.ioports));\r
+ emustatus = 0;\r
+\r
+ Pico.m.dirtyPal = 1;\r
+\r
+ PicoDetectRegion();\r
+ Pico.video.status = 0x3408 | Pico.m.pal; // 'always set' bits | vblank | pal\r