merge mappers from FCEU-mm
[fceu.git] / boards / h2288.c
index 7786daf..a3b5a0b 100644 (file)
@@ -15,7 +15,7 @@
  *\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
 \r
 #include "mapinc.h"\r
@@ -61,23 +61,14 @@ static DECLFW(H2288WriteLo)
   }\r
 }\r
 \r
-static DECLFR(H2288Read)\r
-{\r
-  int bit;\r
-  bit=(A&1)^1;\r
-  bit&=((A>>8)&1);\r
-  bit^=1;\r
-  return((X.DB&0xFE)|bit);\r
-}\r
-\r
 static void H2288Power(void)\r
 {\r
   EXPREGS[0]=EXPREGS[1]=0;\r
   GenMMC3Power();\r
-  SetReadHandler(0x5000,0x5FFF,H2288Read);\r
+//  SetReadHandler(0x5000,0x5FFF,H2288Read);\r
   SetReadHandler(0x8000,0xFFFF,CartBR);\r
   SetWriteHandler(0x5000,0x5FFF,H2288WriteLo);\r
-  SetWriteHandler(0x8000,0x8FFF,H2288WriteHi);\r
+  SetWriteHandler(0x8000,0x9FFF,H2288WriteHi);\r
 }\r
 \r
 void UNLH2288_Init(CartInfo *info)\r