X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=boards%2Fh2288.c;h=a3b5a0b704f0728d1e69213e6450100165f2e979;hb=0d6a66c2a80f50ae51327cd406f9df14d99ad02e;hp=c2c66210b62bf3bdb36745581256ac26af5c646a;hpb=d97315ac0bca825d2d50a44453bc5652946e2c67;p=fceu.git diff --git a/boards/h2288.c b/boards/h2288.c index c2c6621..a3b5a0b 100644 --- a/boards/h2288.c +++ b/boards/h2288.c @@ -61,23 +61,14 @@ static DECLFW(H2288WriteLo) } } -static DECLFR(H2288Read) -{ - int bit; - bit=(A&1)^1; - bit&=((A>>8)&1); - bit^=1; - return((X.DB&0xFE)|bit); -} - static void H2288Power(void) { EXPREGS[0]=EXPREGS[1]=0; GenMMC3Power(); - SetReadHandler(0x5000,0x5FFF,H2288Read); +// SetReadHandler(0x5000,0x5FFF,H2288Read); SetReadHandler(0x8000,0xFFFF,CartBR); SetWriteHandler(0x5000,0x5FFF,H2288WriteLo); - SetWriteHandler(0x8000,0x8FFF,H2288WriteHi); + SetWriteHandler(0x8000,0x9FFF,H2288WriteHi); } void UNLH2288_Init(CartInfo *info)