From f27342d4e88a36d0d46a4aef560f55727584aee0 Mon Sep 17 00:00:00 2001 From: Fabio Priuli Date: Sun, 30 Mar 2014 13:33:42 +0000 Subject: [PATCH] and this was the actual fix, of course... nw. --- src/emu/bus/nes/bootleg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/bus/nes/bootleg.c b/src/emu/bus/nes/bootleg.c index 88933a9bba5..59fd259f18a 100644 --- a/src/emu/bus/nes/bootleg.c +++ b/src/emu/bus/nes/bootleg.c @@ -1538,7 +1538,7 @@ READ8_MEMBER(nes_mmalee_device::read_m) if (offset < 0x0800) return m_prg[0x8000 + offset]; else if (m_prgram && offset >= 0x1000 && offset < 0x1800) // WRAM only in these 2K - return m_prgram[offset & 0x800]; + return m_prgram[offset & 0x7ff]; return ((offset + 0x6000) & 0xff00) >> 8; } @@ -1548,7 +1548,7 @@ WRITE8_MEMBER(nes_mmalee_device::write_m) LOG_MMC(("mmalee write_m, offset: %04x, data: %02x\n", offset, data)); if (m_prgram && offset >= 0x1000 && offset < 0x1800) // WRAM only in these 2K - m_prgram[offset & 0x800] = data; + m_prgram[offset & 0x7ff] = data; } /*-------------------------------------------------