From fe5086dd0c8e72a9e52110f065197775caed0e86 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 24 Sep 2012 08:15:13 +0000 Subject: [PATCH] Fix apple3 regression (no whatsnew) --- src/mess/machine/apple3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mess/machine/apple3.c b/src/mess/machine/apple3.c index c4fe506b411..8fa022d1640 100644 --- a/src/mess/machine/apple3.c +++ b/src/mess/machine/apple3.c @@ -627,10 +627,10 @@ READ8_MEMBER(apple3_state::apple3_indexed_read) { UINT8 result; UINT8 *addr; - + address_space& prog_space = m_maincpu->space(AS_PROGRAM); addr = apple3_get_indexed_addr(machine(),offset); if (!addr) - result = space.read_byte(offset); + result = prog_space.read_byte(offset); else if (addr != (UINT8 *) ~0) result = *addr; else @@ -643,10 +643,10 @@ READ8_MEMBER(apple3_state::apple3_indexed_read) WRITE8_MEMBER(apple3_state::apple3_indexed_write) { UINT8 *addr; - + address_space& prog_space = m_maincpu->space(AS_PROGRAM); addr = apple3_get_indexed_addr(machine(),offset); if (!addr) - space.write_byte(offset, data); + prog_space.write_byte(offset, data); else if (addr != (UINT8 *) ~0) *addr = data; }