diff options
Diffstat (limited to 'src/mame/drivers/mmm.cpp')
-rw-r--r-- | src/mame/drivers/mmm.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mame/drivers/mmm.cpp b/src/mame/drivers/mmm.cpp index 8da2f58f904..0f077d6d761 100644 --- a/src/mame/drivers/mmm.cpp +++ b/src/mame/drivers/mmm.cpp @@ -173,22 +173,23 @@ static const z80_daisy_config mmm_daisy_chain[] = }; -MACHINE_CONFIG_START(mmm_state::mmm) +void mmm_state::mmm(machine_config &config) +{ /* basic machine hardware */ Z80(config, m_maincpu, 2000000); /* ? MHz */ m_maincpu->set_addrmap(AS_PROGRAM, &mmm_state::mem_map); m_maincpu->set_addrmap(AS_IO, &mmm_state::io_map); m_maincpu->set_daisy_config(mmm_daisy_chain); - MCFG_DEVICE_ADD("ctc", Z80CTC, 2000000) - MCFG_Z80CTC_INTR_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0)) + Z80CTC(config, m_ctc, 2000000); + m_ctc->intr_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0); /* sound hardware */ SPEAKER(config, "mono").front_center(); - MCFG_DEVICE_ADD("aysnd", AY8910, 1000000) - MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, mmm_state, ay_porta_w)) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) -MACHINE_CONFIG_END + ay8910_device& ay(AY8910(config, "aysnd", 1000000)); + ay.port_a_write_callback().set(FUNC(mmm_state::ay_porta_w)); + ay.add_route(ALL_OUTPUTS, "mono", 0.30); +} ROM_START( mmm_ldip ) |