Previous 199869 Revisions Next

r18109 Monday 24th September, 2012 at 08:15:13 UTC by Miodrag Milanović
Fix apple3 regression (no whatsnew)
[src/mess/machine]apple3.c

trunk/src/mess/machine/apple3.c
r18108r18109
627627{
628628   UINT8 result;
629629   UINT8 *addr;
630
630   address_space& prog_space = m_maincpu->space(AS_PROGRAM);
631631   addr = apple3_get_indexed_addr(machine(),offset);
632632   if (!addr)
633      result = space.read_byte(offset);
633      result = prog_space.read_byte(offset);
634634   else if (addr != (UINT8 *) ~0)
635635      result = *addr;
636636   else
r18108r18109
643643WRITE8_MEMBER(apple3_state::apple3_indexed_write)
644644{
645645   UINT8 *addr;
646
646   address_space& prog_space = m_maincpu->space(AS_PROGRAM);
647647   addr = apple3_get_indexed_addr(machine(),offset);
648648   if (!addr)
649      space.write_byte(offset, data);
649      prog_space.write_byte(offset, data);
650650   else if (addr != (UINT8 *) ~0)
651651      *addr = data;
652652}

Previous 199869 Revisions Next


© 1997-2024 The MAME Team