svp compiler: working asm dispatcher
[picodrive.git] / Pico / carthw / svp / Memory.c
index ddac49a..2a49139 100644 (file)
@@ -1,3 +1,12 @@
+// The SVP chip emulator
+
+// (c) Copyright 2008, Grazvydas "notaz" Ignotas
+// Free for non-commercial use.
+
+// For commercial use, separate licencing terms must be obtained.
+
+
+#include "../../PicoInt.h"
 #include "../../PicoInt.h"
 
 #ifndef UTYPES_DEFINED
@@ -69,8 +78,8 @@ unsigned int PicoSVPRead16(unsigned int a, int realsize)
   }
   else a15004_looping = 0;
 
-  if (a == 0x30fe02 && d == 0)
-    elprintf(EL_ANOMALY, "SVP lag?");
+  //if (a == 0x30fe02 && d == 0)
+  //  elprintf(EL_ANOMALY, "SVP lag?");
 
   return d;
 }
@@ -99,6 +108,8 @@ void PicoSVPWrite16(unsigned int a, unsigned int d, int realsize)
     //else if (a == 0xa15006) svp->ssp1601.gr[SSP_PM0].h = d | (d << 1);
     // 0xa15006 probably has 'halt'
   }
+  else
+    elprintf(EL_UIO|EL_SVP|EL_ANOMALY, "SVP FIXME: unhandled w%i: [%06x] %04x @%06x", realsize, a&0xffffff, d, SekPc);
 
 
   if (a == 0x30fe06 && d != 0)