summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/nmk004.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/nmk004.cpp')
-rw-r--r--src/mame/machine/nmk004.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mame/machine/nmk004.cpp b/src/mame/machine/nmk004.cpp
index bc3ac8c0d1a..976c1ed6ec0 100644
--- a/src/mame/machine/nmk004.cpp
+++ b/src/mame/machine/nmk004.cpp
@@ -110,11 +110,12 @@ void nmk004_device::device_start()
//-------------------------------------------------
// device_add_mconfig - add device configuration
//-------------------------------------------------
-MACHINE_CONFIG_START(nmk004_device::device_add_mconfig)
- MCFG_DEVICE_ADD("mcu",TMP90840, DERIVED_CLOCK(1,1)) // Toshiba TMP90C840AF in QFP64 package with 8Kbyte internal ROM
- MCFG_DEVICE_PROGRAM_MAP(nmk004_sound_mem_map)
- MCFG_TLCS90_PORT_P4_WRITE_CB(WRITE8(*this, nmk004_device, nmk004_port4_w))
-MACHINE_CONFIG_END
+void nmk004_device::device_add_mconfig(machine_config &config)
+{
+ TMP90840(config, m_cpu, DERIVED_CLOCK(1,1)); // Toshiba TMP90C840AF in QFP64 package with 8Kbyte internal ROM
+ m_cpu->set_addrmap(AS_PROGRAM, &nmk004_device::nmk004_sound_mem_map);
+ m_cpu->port_write<4>().set(FUNC(nmk004_device::nmk004_port4_w));
+}
//-------------------------------------------------
// device_rom_region - return a pointer to the