summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/dlair.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2018-11-07 00:18:50 +0100
committer Ivan Vangelista <mesgnet@yahoo.it>2018-11-07 00:18:50 +0100
commitd8f5778524c1d23d29b352394d8ab45bdb828d6a (patch)
tree0fb37192fb485204da96d9c4f88d65eb3e085312 /src/mame/drivers/dlair.cpp
parent103afb337b5f25d4031450566f3107ff0f14c733 (diff)
ay8910: small batch of MCFG removal (nw)
Diffstat (limited to 'src/mame/drivers/dlair.cpp')
-rw-r--r--src/mame/drivers/dlair.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/dlair.cpp b/src/mame/drivers/dlair.cpp
index c9d94ee9cd6..f49c65b3d76 100644
--- a/src/mame/drivers/dlair.cpp
+++ b/src/mame/drivers/dlair.cpp
@@ -729,22 +729,22 @@ GFXDECODE_END
*
*************************************/
-MACHINE_CONFIG_START(dlair_state::dlair_base)
-
+void dlair_state::dlair_base(machine_config &config)
+{
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu", Z80, MASTER_CLOCK_US/4)
- MCFG_DEVICE_PROGRAM_MAP(dlus_map)
- MCFG_DEVICE_PERIODIC_INT_DRIVER(dlair_state, irq0_line_hold, (double)MASTER_CLOCK_US/8/16/16/16/16)
+ Z80(config, m_maincpu, MASTER_CLOCK_US/4);
+ m_maincpu->set_addrmap(AS_PROGRAM, &dlair_state::dlus_map);
+ m_maincpu->set_periodic_int(FUNC(dlair_state::irq0_line_hold), attotime::from_hz((double)MASTER_CLOCK_US/8/16/16/16/16));
/* sound hardware */
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
- MCFG_DEVICE_ADD("aysnd", AY8910, MASTER_CLOCK_US/8)
- MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1"))
- MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW2"))
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.33)
-MACHINE_CONFIG_END
+ ay8910_device &aysnd(AY8910(config, "aysnd", MASTER_CLOCK_US/8));
+ aysnd.port_a_read_callback().set_ioport("DSW1");
+ aysnd.port_b_read_callback().set_ioport("DSW2");
+ aysnd.add_route(ALL_OUTPUTS, "rspeaker", 0.33);
+}
MACHINE_CONFIG_START(dlair_state::dlair_pr7820)