+
+// Temp debugging stuff
+
+void DumpMainMemory(void)
+{
+ FILE * fp = fopen("./memdump.bin", "wb");
+
+ if (fp == NULL)
+ return;
+
+ fwrite(jaguar_mainRam, 1, 0x400000, fp);
+// for(int i=0; i<0x400000; i++)
+// fprintf(fp, "%c", jaguar_mainRam[i]);
+// fputc(jaguar_mainRam[i], fp);
+
+ fclose(fp);
+}
+
+uint8 * GetRamPtr(void)
+{
+ return jaguar_mainRam;
+}