X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=boards%2Fh2288.c;fp=boards%2Fh2288.c;h=a3b5a0b704f0728d1e69213e6450100165f2e979;hp=7786daf467ab6d5a22bc2b6b65438c0ff2d72bff;hb=43725da7349c85fa13e828fdbf20cc7ac8d298d6;hpb=386f5371eb984fb9c2860c83e740890a75cd45c1 diff --git a/boards/h2288.c b/boards/h2288.c index 7786daf..a3b5a0b 100644 --- a/boards/h2288.c +++ b/boards/h2288.c @@ -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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "mapinc.h" @@ -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)