diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2019-02-26 19:32:59 +0100 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2019-02-26 19:32:59 +0100 |
commit | 684e5c4d57596de1427c840ad7495c0823edd96b (patch) | |
tree | 3bc88632d408564a985997826e9e023effe6a17a /src/mame/drivers/notechan.cpp | |
parent | 0f60932bf53aaff8a2a9a2f2ce821f094f97b32f (diff) |
mame\drivers: removed most MCFG and MACHINE_CONFIG macros from drivers starting with m, n and o (nw)
Diffstat (limited to 'src/mame/drivers/notechan.cpp')
-rw-r--r-- | src/mame/drivers/notechan.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/notechan.cpp b/src/mame/drivers/notechan.cpp index cc6f1cd901d..e70841aa0d0 100644 --- a/src/mame/drivers/notechan.cpp +++ b/src/mame/drivers/notechan.cpp @@ -505,21 +505,21 @@ INPUT_PORTS_END * Machine Config * *********************************************/ -MACHINE_CONFIG_START(notechan_state::notechan) +void notechan_state::notechan(machine_config &config) +{ /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", Z80, CPU_CLOCK) // unknown... - MCFG_DEVICE_PROGRAM_MAP(notechan_map) - MCFG_DEVICE_IO_MAP(notechan_port_map) - MCFG_DEVICE_PERIODIC_INT_DRIVER(driver_device, irq0_line_hold, 60) + Z80(config, m_maincpu, CPU_CLOCK); // unknown... + m_maincpu->set_addrmap(AS_PROGRAM, ¬echan_state::notechan_map); + m_maincpu->set_addrmap(AS_IO, ¬echan_state::notechan_port_map); + m_maincpu->set_periodic_int(FUNC(driver_device::irq0_line_hold), attotime::from_hz(60)); /* NO VIDEO */ /* sound hardware */ SPEAKER(config, "speaker").front_center(); - MCFG_DEVICE_ADD("oki", OKIM6295, SND_CLOCK, okim6295_device::PIN7_HIGH) // match the real sounds - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) -MACHINE_CONFIG_END + OKIM6295(config, m_oki, SND_CLOCK, okim6295_device::PIN7_HIGH).add_route(ALL_OUTPUTS, "speaker", 1.0); // match the real sounds +} /********************************************* |