trunk/src/mess/machine/apple3.c
| r18108 | r18109 | |
| 627 | 627 | { |
| 628 | 628 | UINT8 result; |
| 629 | 629 | UINT8 *addr; |
| 630 | | |
| 630 | address_space& prog_space = m_maincpu->space(AS_PROGRAM); |
| 631 | 631 | addr = apple3_get_indexed_addr(machine(),offset); |
| 632 | 632 | if (!addr) |
| 633 | | result = space.read_byte(offset); |
| 633 | result = prog_space.read_byte(offset); |
| 634 | 634 | else if (addr != (UINT8 *) ~0) |
| 635 | 635 | result = *addr; |
| 636 | 636 | else |
| r18108 | r18109 | |
| 643 | 643 | WRITE8_MEMBER(apple3_state::apple3_indexed_write) |
| 644 | 644 | { |
| 645 | 645 | UINT8 *addr; |
| 646 | | |
| 646 | address_space& prog_space = m_maincpu->space(AS_PROGRAM); |
| 647 | 647 | addr = apple3_get_indexed_addr(machine(),offset); |
| 648 | 648 | if (!addr) |
| 649 | | space.write_byte(offset, data); |
| 649 | prog_space.write_byte(offset, data); |
| 650 | 650 | else if (addr != (UINT8 *) ~0) |
| 651 | 651 | *addr = data; |
| 652 | 652 | } |