summaryrefslogtreecommitdiffstats
path: root/src/mame/audio/t5182.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/t5182.cpp')
-rw-r--r--src/mame/audio/t5182.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/audio/t5182.cpp b/src/mame/audio/t5182.cpp
index 2cc831bf63d..93726634dcb 100644
--- a/src/mame/audio/t5182.cpp
+++ b/src/mame/audio/t5182.cpp
@@ -371,9 +371,9 @@ void t5182_device::t5182_io(address_map &map)
// device_add_mconfig - add device configuration
//-------------------------------------------------
-void t5182_device::device_add_mconfig(machine_config &config)
-{
- Z80(config, m_ourcpu, T5182_CLOCK);
- m_ourcpu->set_addrmap(AS_PROGRAM, &t5182_device::t5182_map);
- m_ourcpu->set_addrmap(AS_IO, &t5182_device::t5182_io);
-}
+MACHINE_CONFIG_START(t5182_device::device_add_mconfig)
+ MCFG_DEVICE_ADD("t5182_z80", Z80, T5182_CLOCK)
+ MCFG_DEVICE_PROGRAM_MAP(t5182_map)
+ MCFG_DEVICE_IO_MAP(t5182_io)
+
+MACHINE_CONFIG_END