summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/squale.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/squale.cpp')
-rw-r--r--src/mame/drivers/squale.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/squale.cpp b/src/mame/drivers/squale.cpp
index 18e101de8f0..5e434cd86f7 100644
--- a/src/mame/drivers/squale.cpp
+++ b/src/mame/drivers/squale.cpp
@@ -804,13 +804,13 @@ MACHINE_CONFIG_START(squale_state::squale)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_DEVICE_ADD("ay8910", AY8910, AY_CLOCK)
+ AY8910(config, m_ay8910, AY_CLOCK);
// TODO : Add port I/O handler
- MCFG_AY8910_PORT_A_READ_CB(READ8(*this, squale_state, ay_porta_r))
- MCFG_AY8910_PORT_B_READ_CB(READ8(*this, squale_state, ay_portb_r))
- MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, squale_state, ay_porta_w))
- MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, squale_state, ay_portb_w))
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
+ m_ay8910->port_a_read_callback().set(FUNC(squale_state::ay_porta_r));
+ m_ay8910->port_b_read_callback().set(FUNC(squale_state::ay_portb_r));
+ m_ay8910->port_a_write_callback().set(FUNC(squale_state::ay_porta_w));
+ m_ay8910->port_b_write_callback().set(FUNC(squale_state::ay_portb_w));
+ m_ay8910->add_route(ALL_OUTPUTS, "mono", 0.50);
MCFG_DEVICE_ADD ("ef6850", ACIA6850, 0)