merge mapper code from FCEUX
[fceu.git] / mappers / 82.c
index b6a1cb2..674b677 100644 (file)
@@ -1,7 +1,7 @@
 /* FCE Ultra - NES/Famicom Emulator
  *
  * Copyright notice for this file:
- *  Copyright (C) 2002 Ben Parnell
+ *  Copyright (C) 2002 Xodnizel
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
 #include "mapinc.h"
 
-#define ctrl   mapbyte1[6]
+#define ctrl        mapbyte1[6]
 
 static void DoCHR(void)
 {
@@ -43,9 +43,9 @@ static DECLFW(Mapper82_write)
   switch(A)
   {
    case 0x7ef6:ctrl=V&3;
-              MIRROR_SET2(V&1);
-              DoCHR();
-              break;
+               MIRROR_SET2(V&1);
+                DoCHR();
+                 break;
    case 0x7efa:V>>=2;mapbyte2[0]=V;ROM_BANK8(0x8000,V);break;
    case 0x7efb:V>>=2;mapbyte2[1]=V;ROM_BANK8(0xa000,V);break;
    case 0x7efc:V>>=2;mapbyte2[2]=V;ROM_BANK8(0xc000,V);break;