merge mappers from FCEU-mm
[fceu.git] / boards / 108.c
index fc3aebd..59d91f2 100644 (file)
  *\r
  * You should have received a copy of the GNU General Public License\r
  * along with this program; if not, write to the Free Software\r
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA\r
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
+ *\r
+ * FDS Conversion\r
+ *\r
+ * Meikyuu Jin Dababa\r
+ * Bubble Bobble Kaiser\r
+ *\r
  */\r
 \r
 #include "mapinc.h"\r
@@ -37,8 +43,8 @@ static void Sync(void)
 \r
 static DECLFW(M108Write)\r
 {\r
-   reg=V;\r
-   Sync();\r
+  reg=V;\r
+  Sync();\r
 }\r
 \r
 static void M108Power(void)\r
@@ -46,7 +52,8 @@ static void M108Power(void)
   Sync();\r
   SetReadHandler(0x6000,0x7FFF,CartBR);\r
   SetReadHandler(0x8000,0xFFFF,CartBR);\r
-  SetWriteHandler(0x8FFF,0x8FFF,M108Write);\r
+  SetWriteHandler(0x8000,0x8FFF,M108Write); // regular 108\r
+  SetWriteHandler(0xF000,0xFFFF,M108Write); // simplified Kaiser BB Hack\r
 }\r
 \r
 static void StateRestore(int version)\r