summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/laser3k.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/laser3k.cpp')
-rw-r--r--src/mame/drivers/laser3k.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/drivers/laser3k.cpp b/src/mame/drivers/laser3k.cpp
index c3da598e049..fdc27124c5f 100644
--- a/src/mame/drivers/laser3k.cpp
+++ b/src/mame/drivers/laser3k.cpp
@@ -995,19 +995,19 @@ MACHINE_CONFIG_START(laser3k_state::laser3k)
RAM(config, "mainram").set_default_size("192K");
/* the 8048 isn't dumped, so substitute modified real Apple II h/w */
- MCFG_DEVICE_ADD("ay3600", AY3600, 0)
- MCFG_AY3600_MATRIX_X0(IOPORT("X0"))
- MCFG_AY3600_MATRIX_X1(IOPORT("X1"))
- MCFG_AY3600_MATRIX_X2(IOPORT("X2"))
- MCFG_AY3600_MATRIX_X3(IOPORT("X3"))
- MCFG_AY3600_MATRIX_X4(IOPORT("X4"))
- MCFG_AY3600_MATRIX_X5(IOPORT("X5"))
- MCFG_AY3600_MATRIX_X6(IOPORT("X6"))
- MCFG_AY3600_MATRIX_X7(IOPORT("X7"))
- MCFG_AY3600_MATRIX_X8(IOPORT("X8"))
- MCFG_AY3600_SHIFT_CB(READLINE(*this, laser3k_state, ay3600_shift_r))
- MCFG_AY3600_CONTROL_CB(READLINE(*this, laser3k_state, ay3600_control_r))
- MCFG_AY3600_DATA_READY_CB(WRITELINE(*this, laser3k_state, ay3600_data_ready_w))
+ AY3600(config, m_ay3600, 0);
+ m_ay3600->x0().set_ioport("X0");
+ m_ay3600->x1().set_ioport("X1");
+ m_ay3600->x2().set_ioport("X2");
+ m_ay3600->x3().set_ioport("X3");
+ m_ay3600->x4().set_ioport("X4");
+ m_ay3600->x5().set_ioport("X5");
+ m_ay3600->x6().set_ioport("X6");
+ m_ay3600->x7().set_ioport("X7");
+ m_ay3600->x8().set_ioport("X8");
+ m_ay3600->shift().set(FUNC(laser3k_state::ay3600_shift_r));
+ m_ay3600->control().set(FUNC(laser3k_state::ay3600_control_r));
+ m_ay3600->data_ready().set(FUNC(laser3k_state::ay3600_data_ready_w));
/* sound hardware */
SPEAKER(config, "mono").front_center();