Page[] mappings in mapper code, X.DB update for games with no controls
[fceu.git] / cart.c
diff --git a/cart.c b/cart.c
index e1cd5da..742f9b0 100644 (file)
--- a/cart.c
+++ b/cart.c
@@ -711,4 +711,22 @@ void FCEU_LoadGameSave(CartInfo *LocalHWInfo)
  }
 }
 
+void DumpEmptyCartMapping(void)
+{
+ int x, st=0, end=-1;
+
+ for(x=8;x<32;x++)
+ {
+  if (Page[x] == (nothing-x*2048) || Page[x] == 0)
+  {
+   if (end != x) st=x;
+   end=x+1;
+  }
+  if (end == x)
+   printf("DumpEmptyCartMapping: %04x-%04x\n", st*2048, end*2048-1);
+ }
+ if (end==32)
+  printf("DumpEmptyCartMapping: %04x-%04x\n", st*2048, end*2048-1);
+}
+