summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/blueprnt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/blueprnt.cpp')
-rw-r--r--src/mame/drivers/blueprnt.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/blueprnt.cpp b/src/mame/drivers/blueprnt.cpp
index cdd7514cbf9..e2f5472da41 100644
--- a/src/mame/drivers/blueprnt.cpp
+++ b/src/mame/drivers/blueprnt.cpp
@@ -380,17 +380,17 @@ MACHINE_CONFIG_START(blueprnt_state::blueprnt)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_GENERIC_LATCH_8_ADD("soundlatch")
+ GENERIC_LATCH_8(config, m_soundlatch);
- MCFG_DEVICE_ADD("ay1", AY8910, 10000000/2/2/2)
- MCFG_AY8910_PORT_B_READ_CB(READ8("soundlatch", generic_latch_8_device, read))
- MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, blueprnt_state, dipsw_w))
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
+ ay8910_device &ay1(AY8910(config, "ay1", 10000000/2/2/2));
+ ay1.port_b_read_callback().set(m_soundlatch, FUNC(generic_latch_8_device::read));
+ ay1.port_a_write_callback().set(FUNC(blueprnt_state::dipsw_w));
+ ay1.add_route(ALL_OUTPUTS, "mono", 0.25);
- MCFG_DEVICE_ADD("ay2", AY8910, 10000000/2/2/2/2)
- MCFG_AY8910_PORT_A_READ_CB(IOPORT("DILSW1"))
- MCFG_AY8910_PORT_B_READ_CB(IOPORT("DILSW2"))
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
+ ay8910_device &ay2(AY8910(config, "ay2", 10000000/2/2/2/2));
+ ay2.port_a_read_callback().set_ioport("DILSW1");
+ ay2.port_b_read_callback().set_ioport("DILSW2");
+ ay2.add_route(ALL_OUTPUTS, "mono", 0.25);
MACHINE_CONFIG_END
MACHINE_CONFIG_START(blueprnt_state::grasspin)