mirror of
https://github.com/holub/mame
synced 2025-04-20 23:42:22 +03:00
and this was the actual fix, of course... nw.
This commit is contained in:
parent
85147183e9
commit
f27342d4e8
@ -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;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user