summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/scc2698b.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/scc2698b.cpp')
-rw-r--r--src/devices/machine/scc2698b.cpp36
1 files changed, 12 insertions, 24 deletions
diff --git a/src/devices/machine/scc2698b.cpp b/src/devices/machine/scc2698b.cpp
index 5be0dc9b08c..9dcc280fb20 100644
--- a/src/devices/machine/scc2698b.cpp
+++ b/src/devices/machine/scc2698b.cpp
@@ -342,11 +342,11 @@ void scc2698b_channel::recompute_pin_output(bool force)
-WRITE_LINE_MEMBER( scc2698b_channel::mpi0_w )
+void scc2698b_channel::mpi0_w(int state)
{
}
-WRITE_LINE_MEMBER( scc2698b_channel::mpi1_w )
+void scc2698b_channel::mpi1_w(int state)
{
}
@@ -434,19 +434,7 @@ void scc2698b_device::write_line_mpo(int port, int value)
logerror("Unsupported port %d in write_line_mpo\n", port);
}
-
-READ8_MEMBER(scc2698b_device::read)
-{
- return read_reg(offset);
-}
-
-WRITE8_MEMBER(scc2698b_device::write)
-{
- write_reg(offset, data);
-}
-
-
-uint8_t scc2698b_device::read_reg(int offset)
+uint8_t scc2698b_device::read(offs_t offset)
{
int device = (offset >> 4) & 3;
int reg = (offset & 15);
@@ -496,7 +484,7 @@ uint8_t scc2698b_device::read_reg(int offset)
return data;
}
-void scc2698b_device::write_reg(int offset, uint8_t data)
+void scc2698b_device::write(offs_t offset, u8 data)
{
int device = (offset >> 4) & 3;
int reg = (offset & 15);
@@ -576,14 +564,14 @@ void scc2698b_device::write_reg(int offset, uint8_t data)
}
}
-WRITE_LINE_MEMBER(scc2698b_device::port_a_rx_w) { m_channel[0]->rx_w(state); }
-WRITE_LINE_MEMBER(scc2698b_device::port_b_rx_w) { m_channel[1]->rx_w(state); }
-WRITE_LINE_MEMBER(scc2698b_device::port_c_rx_w) { m_channel[2]->rx_w(state); }
-WRITE_LINE_MEMBER(scc2698b_device::port_d_rx_w) { m_channel[3]->rx_w(state); }
-WRITE_LINE_MEMBER(scc2698b_device::port_e_rx_w) { m_channel[4]->rx_w(state); }
-WRITE_LINE_MEMBER(scc2698b_device::port_f_rx_w) { m_channel[5]->rx_w(state); }
-WRITE_LINE_MEMBER(scc2698b_device::port_g_rx_w) { m_channel[6]->rx_w(state); }
-WRITE_LINE_MEMBER(scc2698b_device::port_h_rx_w) { m_channel[7]->rx_w(state); }
+void scc2698b_device::port_a_rx_w(int state) { m_channel[0]->rx_w(state); }
+void scc2698b_device::port_b_rx_w(int state) { m_channel[1]->rx_w(state); }
+void scc2698b_device::port_c_rx_w(int state) { m_channel[2]->rx_w(state); }
+void scc2698b_device::port_d_rx_w(int state) { m_channel[3]->rx_w(state); }
+void scc2698b_device::port_e_rx_w(int state) { m_channel[4]->rx_w(state); }
+void scc2698b_device::port_f_rx_w(int state) { m_channel[5]->rx_w(state); }
+void scc2698b_device::port_g_rx_w(int state) { m_channel[6]->rx_w(state); }
+void scc2698b_device::port_h_rx_w(int state) { m_channel[7]->rx_w(state); }
scc2698b_channel* scc2698b_device::get_channel(int port)