diff options
Diffstat (limited to 'src/devices/bus/bbc/userport/usersplit.cpp')
-rw-r--r-- | src/devices/bus/bbc/userport/usersplit.cpp | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/devices/bus/bbc/userport/usersplit.cpp b/src/devices/bus/bbc/userport/usersplit.cpp index abe6ec155bf..48adaaddd89 100644 --- a/src/devices/bus/bbc/userport/usersplit.cpp +++ b/src/devices/bus/bbc/userport/usersplit.cpp @@ -23,7 +23,7 @@ DEFINE_DEVICE_TYPE(BBC_USERSPLIT, bbc_usersplit_device, "bbc_usersplit", "BBC Mi static INPUT_PORTS_START( usersplit ) PORT_START("SELECT") - PORT_CONFNAME(0x01, 0x00, "User Port") PORT_CHANGED_MEMBER(DEVICE_SELF, bbc_usersplit_device, userport_changed, 0) + PORT_CONFNAME(0x01, 0x00, "User Port") PORT_CHANGED_MEMBER(DEVICE_SELF, FUNC(bbc_usersplit_device::userport_changed), 0) PORT_CONFSETTING(0x00, "A") PORT_CONFSETTING(0x01, "B") INPUT_PORTS_END @@ -98,25 +98,36 @@ void bbc_usersplit_device::pb_w(uint8_t data) m_userport[m_selected]->pb_w(data); } -WRITE_LINE_MEMBER(bbc_usersplit_device::cb1a_w) +void bbc_usersplit_device::write_cb1(int state) +{ + m_userport[m_selected]->write_cb1(state); +} + +void bbc_usersplit_device::write_cb2(int state) +{ + m_userport[m_selected]->write_cb2(state); +} + + +void bbc_usersplit_device::cb1a_w(int state) { if (m_selected == 0x00) m_slot->cb1_w(state); } -WRITE_LINE_MEMBER(bbc_usersplit_device::cb2a_w) +void bbc_usersplit_device::cb2a_w(int state) { if (m_selected == 0x00) m_slot->cb2_w(state); } -WRITE_LINE_MEMBER(bbc_usersplit_device::cb1b_w) +void bbc_usersplit_device::cb1b_w(int state) { if (m_selected == 0x01) m_slot->cb1_w(state); } -WRITE_LINE_MEMBER(bbc_usersplit_device::cb2b_w) +void bbc_usersplit_device::cb2b_w(int state) { if (m_selected == 0x01) m_slot->cb2_w(state); |