}\r
\r
// for nonstandard reads\r
-#ifndef _ASM_MEMORY_C\r
-static\r
-#endif\r
-u32 OtherRead16End(u32 a, int realsize)\r
+static u32 OtherRead16End(u32 a, int realsize)\r
{\r
u32 d=0;\r
\r
\r
\r
// -----------------------------------------------------------------\r
+\r
+// TODO: asm code\r
+u32 (*PicoRead16Hook)(u32 a, int realsize) = OtherRead16End;\r
+void (*PicoWrite8Hook)(u32 a, u32 d, int realsize) = OtherWrite8End;\r
+\r
PICO_INTERNAL void PicoMemSetup(void)\r
{\r
+ // default unmapped/cart specific handlers\r
+ PicoRead16Hook = OtherRead16End;\r
+ PicoWrite8Hook = OtherWrite8End;\r
+\r
// Setup memory callbacks:\r
#ifdef EMU_C68K\r
PicoCpuCM68k.checkpc=PicoCheckPc;\r