mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
Fix apple3 regression (no whatsnew)
This commit is contained in:
parent
cf20d8ad5f
commit
fe5086dd0c
1 changed files with 4 additions and 4 deletions
|
@ -627,10 +627,10 @@ READ8_MEMBER(apple3_state::apple3_indexed_read)
|
||||||
{
|
{
|
||||||
UINT8 result;
|
UINT8 result;
|
||||||
UINT8 *addr;
|
UINT8 *addr;
|
||||||
|
address_space& prog_space = m_maincpu->space(AS_PROGRAM);
|
||||||
addr = apple3_get_indexed_addr(machine(),offset);
|
addr = apple3_get_indexed_addr(machine(),offset);
|
||||||
if (!addr)
|
if (!addr)
|
||||||
result = space.read_byte(offset);
|
result = prog_space.read_byte(offset);
|
||||||
else if (addr != (UINT8 *) ~0)
|
else if (addr != (UINT8 *) ~0)
|
||||||
result = *addr;
|
result = *addr;
|
||||||
else
|
else
|
||||||
|
@ -643,10 +643,10 @@ READ8_MEMBER(apple3_state::apple3_indexed_read)
|
||||||
WRITE8_MEMBER(apple3_state::apple3_indexed_write)
|
WRITE8_MEMBER(apple3_state::apple3_indexed_write)
|
||||||
{
|
{
|
||||||
UINT8 *addr;
|
UINT8 *addr;
|
||||||
|
address_space& prog_space = m_maincpu->space(AS_PROGRAM);
|
||||||
addr = apple3_get_indexed_addr(machine(),offset);
|
addr = apple3_get_indexed_addr(machine(),offset);
|
||||||
if (!addr)
|
if (!addr)
|
||||||
space.write_byte(offset, data);
|
prog_space.write_byte(offset, data);
|
||||||
else if (addr != (UINT8 *) ~0)
|
else if (addr != (UINT8 *) ~0)
|
||||||
*addr = data;
|
*addr = data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue