and this was the actual fix, of course... nw.

This commit is contained in:
Fabio Priuli 2014-03-30 13:33:42 +00:00
parent 85147183e9
commit f27342d4e8

View File

@ -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;
}
/*-------------------------------------------------