diff options
Diffstat (limited to 'src/devices/cpu/tms9900/tms9980a.cpp')
-rw-r--r-- | src/devices/cpu/tms9900/tms9980a.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/cpu/tms9900/tms9980a.cpp b/src/devices/cpu/tms9900/tms9980a.cpp index a2ad92feda7..befeb346481 100644 --- a/src/devices/cpu/tms9900/tms9980a.cpp +++ b/src/devices/cpu/tms9900/tms9980a.cpp @@ -201,8 +201,8 @@ void tms9980a_device::mem_read() case 1: m_pass = 4; // make the CPU visit this method more than once if (!m_dbin_line.isnull()) m_dbin_line(ASSERT_LINE); - if (m_sospace) - m_sospace->read_byte(m_address & m_prgaddr_mask & ~1); + if (m_setaddr) + m_setaddr->write_word(ASSERT_LINE, m_address & m_prgaddr_mask & ~1); if (TRACE_ADDRESSBUS) logerror("tms9980a: set address bus %04x\n", m_address & m_prgaddr_mask & ~1); m_check_ready = true; break; @@ -213,8 +213,8 @@ void tms9980a_device::mem_read() m_current_value = (value << 8) & 0xff00; break; case 3: - if (m_sospace) - m_sospace->read_byte((m_address & m_prgaddr_mask) | 1); + if (m_setaddr) + m_setaddr->write_word(ASSERT_LINE, (m_address & m_prgaddr_mask) | 1); if (TRACE_ADDRESSBUS) logerror("tms9980a: set address bus %04x\n", (m_address & m_prgaddr_mask) | 1); break; case 4: @@ -236,8 +236,8 @@ void tms9980a_device::mem_write() case 1: m_pass = 4; // make the CPU visit this method once more if (!m_dbin_line.isnull()) m_dbin_line(CLEAR_LINE); - if (m_sospace) - m_sospace->read_byte(m_address & m_prgaddr_mask & ~1); + if (m_setaddr) + m_setaddr->write_word(CLEAR_LINE, m_address & m_prgaddr_mask & ~1); if (TRACE_ADDRESSBUS) logerror("tms9980a: set address bus %04x\n", m_address & m_prgaddr_mask & ~1); m_prgspace->write_byte(m_address & 0x3ffe & ~1, (m_current_value >> 8)&0xff); if (TRACE_MEM) logerror("tms9980a: memory write high byte %04x <- %02x\n", m_address & m_prgaddr_mask & ~1, (m_current_value >> 8)&0xff); @@ -247,8 +247,8 @@ void tms9980a_device::mem_write() // no action here, just wait for READY break; case 3: - if (m_sospace) - m_sospace->read_byte((m_address & m_prgaddr_mask) | 1); + if (m_setaddr) + m_setaddr->write_word(CLEAR_LINE, (m_address & m_prgaddr_mask) | 1); if (TRACE_ADDRESSBUS) logerror("tms9980a: set address bus %04x\n", (m_address & m_prgaddr_mask) | 1); m_prgspace->write_byte((m_address & m_prgaddr_mask) | 1, m_current_value & 0xff); if (TRACE_MEM) logerror("tms9980a: memory write low byte %04x <- %02x\n", (m_address & m_prgaddr_mask) | 1, m_current_value & 0xff); |