merge mapper code from FCEUX
[fceu.git] / mappers / 246.c
index d36b277..4ae017e 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
@@ -15,7 +15,7 @@
  *
  * 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"
@@ -25,14 +25,10 @@ DECLFW(Mapper246_write)
 {
  switch(A&0xF007)
  {
- case 0x6000:ROM_BANK8(0x8000,V);
-             X6502_Rebase();break;
- case 0x6001:ROM_BANK8(0xA000,V);
-             X6502_Rebase();break;
- case 0x6002:ROM_BANK8(0xC000,V);
-             X6502_Rebase();break;
- case 0x6003:ROM_BANK8(0xE000,V);
-             X6502_Rebase();break;
+ case 0x6000:ROM_BANK8(0x8000,V);break;
+ case 0x6001:ROM_BANK8(0xA000,V);break;
+ case 0x6002:ROM_BANK8(0xC000,V);break;
+ case 0x6003:ROM_BANK8(0xE000,V);break;
  case 0x6004:VROM_BANK2(0x0000,V);break;
  case 0x6005:VROM_BANK2(0x0800,V);break;
  case 0x6006:VROM_BANK2(0x1000,V);break;