diff options
author | 2016-06-21 18:48:02 +0200 | |
---|---|---|
committer | 2016-06-21 18:48:02 +0200 | |
commit | 6e90cb5a82e59b49fd175ffcdc9ece33d3eda9f3 (patch) | |
tree | f9f69a624d51e8c4b12f0c7f18de453df92caab8 /src/devices/cpu/nec/v25sfr.cpp | |
parent | d5ce793a1d900972ea95e85a6cb39c5c57e00bb5 (diff) |
v25.cpp: made it use devcb instead of a memory map for the ports (nw)
Diffstat (limited to 'src/devices/cpu/nec/v25sfr.cpp')
-rw-r--r-- | src/devices/cpu/nec/v25sfr.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/cpu/nec/v25sfr.cpp b/src/devices/cpu/nec/v25sfr.cpp index 7e8afc8b39c..ea80ca4aa1f 100644 --- a/src/devices/cpu/nec/v25sfr.cpp +++ b/src/devices/cpu/nec/v25sfr.cpp @@ -25,21 +25,21 @@ UINT8 v25_common_device::read_sfr(unsigned o) switch(o) { case 0x00: /* P0 */ - ret = m_io->read_byte(V25_PORT_P0); + ret = m_p0_in(); break; case 0x08: /* P1 */ /* P1 is combined with the interrupt lines */ - ret = ((m_io->read_byte(V25_PORT_P1) & 0xF0) + ret = ((m_p1_in() & 0xF0) | (m_nmi_state ? 0x00 : 0x01) | (m_intp_state[0] ? 0x00 : 0x02) | (m_intp_state[1] ? 0x00 : 0x04) | (m_intp_state[2] ? 0x00 : 0x08)); break; case 0x10: /* P2 */ - ret = m_io->read_byte(V25_PORT_P2); + ret = m_p2_in(); break; case 0x38: /* PT */ - ret = m_io->read_byte(V25_PORT_PT); + ret = m_pt_in(); break; case 0x4C: /* EXIC0 */ ret = read_irqcontrol(INTP0, m_priority_intp); @@ -169,14 +169,14 @@ void v25_common_device::write_sfr(unsigned o, UINT8 d) switch(o) { case 0x00: /* P0 */ - m_io->write_byte(V25_PORT_P0, d); + m_p0_out(d); break; case 0x08: /* P1 */ /* only the upper four bits of P1 can be used as output */ - m_io->write_byte(V25_PORT_P1, d & 0xF0); + m_p1_out(d & 0xF0); break; case 0x10: /* P2 */ - m_io->write_byte(V25_PORT_P2, d); + m_p2_out(d); break; case 0x4C: /* EXIC0 */ write_irqcontrol(INTP0, d); |