SVP stubs
[picodrive.git] / Pico / Memory.c
index 8dc11bb..f9d7f69 100644 (file)
@@ -203,10 +203,7 @@ static void SRAMWrite(u32 a, u32 d)
 }\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
@@ -499,8 +496,17 @@ static void PicoWrite32(u32 a,u32 d)
 \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