mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
MT 04836 [Robbbert]
This commit is contained in:
parent
f2dfd6dfaf
commit
e3a14b62a1
@ -70,13 +70,14 @@ READ32_MEMBER(mpu5_state::mpu5_mem_r)
|
|||||||
|
|
||||||
switch ( cs )
|
switch ( cs )
|
||||||
{
|
{
|
||||||
case 1:
|
|
||||||
return m_cpuregion[offset];
|
|
||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
offset &=0x3fff;
|
offset &=0x3fff;
|
||||||
return (m_mainram[offset]);
|
return (m_mainram[offset]);
|
||||||
|
|
||||||
|
case 1:if (offset < 0x100000) // make sure to log an error instead of crashing when reading beyond end of region
|
||||||
|
return m_cpuregion[offset];
|
||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
logerror("%08x maincpu read access offset %08x mem_mask %08x cs %d\n", pc, offset*4, mem_mask, cs);
|
logerror("%08x maincpu read access offset %08x mem_mask %08x cs %d\n", pc, offset*4, mem_mask, cs);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user