summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/315_5649.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/315_5649.cpp')
-rw-r--r--src/mame/machine/315_5649.cpp33
1 files changed, 12 insertions, 21 deletions
diff --git a/src/mame/machine/315_5649.cpp b/src/mame/machine/315_5649.cpp
index 6b2560c7d44..dca280d6eaf 100644
--- a/src/mame/machine/315_5649.cpp
+++ b/src/mame/machine/315_5649.cpp
@@ -32,11 +32,12 @@ DEFINE_DEVICE_TYPE(SEGA_315_5649, sega_315_5649_device, "315_5649", "Sega 315-56
sega_315_5649_device::sega_315_5649_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
device_t(mconfig, SEGA_315_5649, tag, owner, clock),
- m_in_port_cb{ {*this}, {*this}, {*this}, {*this}, {*this}, {*this}, {*this} },
- m_out_port_cb{ {*this}, {*this}, {*this}, {*this}, {*this}, {*this}, {*this} },
- m_an_port_cb{ {*this}, {*this}, {*this}, {*this}, {*this}, {*this}, {*this}, {*this} },
- m_serial_rd_cb{ {*this}, {*this} }, m_serial_wr_cb{ {*this}, {*this} },
- m_cnt_cb{ {*this}, {*this}, {*this}, {*this} },
+ m_in_port_cb(*this),
+ m_out_port_cb(*this),
+ m_an_port_cb(*this),
+ m_serial_rd_cb(*this),
+ m_serial_wr_cb(*this),
+ m_cnt_cb(*this),
m_port_config(0),
m_mode(0),
m_analog_channel(0)
@@ -51,25 +52,15 @@ sega_315_5649_device::sega_315_5649_device(const machine_config &mconfig, const
void sega_315_5649_device::device_start()
{
// resolve callbacks
- for (unsigned i = 0; i < 7; i++)
- {
- m_in_port_cb[i].resolve_safe(0xff);
- m_out_port_cb[i].resolve_safe();
- }
+ m_in_port_cb.resolve_all_safe(0xff);
+ m_out_port_cb.resolve_all_safe();
- for (unsigned i = 0; i < 8; i++)
- m_an_port_cb[i].resolve_safe(0xff);
+ m_an_port_cb.resolve_all_safe(0xff);
- for (unsigned i = 0; i < 2; i++)
- {
- m_serial_rd_cb[i].resolve_safe(0);
- m_serial_wr_cb[i].resolve_safe();
- }
+ m_serial_rd_cb.resolve_all_safe(0);
+ m_serial_wr_cb.resolve_all_safe();
- for (unsigned i = 0; i < 4; i++)
- {
- m_cnt_cb[i].resolve_safe(0);
- }
+ m_cnt_cb.resolve_all_safe(0);
// register for save states
save_pointer(NAME(m_port_value), 7);