updated bords/mappers/stuff to 0.98.15, lots of them got broken, asmcore support...
[fceu.git] / mappers / 193.c
diff --git a/mappers/193.c b/mappers/193.c
new file mode 100644 (file)
index 0000000..0afa247
--- /dev/null
@@ -0,0 +1,20 @@
+#include "mapinc.h"
+
+static DECLFW(m193w)
+{
+  //printf("$%04x:$%02x\n",A,V);
+ switch(A&3)
+ {
+  case 0:VROM_BANK4(0x0000,V>>2);break;
+  case 1:VROM_BANK2(0x1000,V>>1);break;
+  case 2:VROM_BANK2(0x1800,V>>1);break;
+  case 3:ROM_BANK8(0x8000,V);break;
+ }
+}
+
+void Mapper193_init(void)
+{
+ ROM_BANK32(~0);
+ SetWriteHandler(0x4018,0x7fff,m193w);
+ SetReadHandler(0x4018,0x7fff,0);
+}