summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/namco51.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/namco51.cpp')
-rw-r--r--src/mame/machine/namco51.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mame/machine/namco51.cpp b/src/mame/machine/namco51.cpp
index c69cf47e0e6..34156df3c7a 100644
--- a/src/mame/machine/namco51.cpp
+++ b/src/mame/machine/namco51.cpp
@@ -390,14 +390,15 @@ void namco_51xx_device::device_reset()
// device_add_mconfig - add device configuration
//-------------------------------------------------
-MACHINE_CONFIG_START(namco_51xx_device::device_add_mconfig)
- MCFG_DEVICE_ADD("mcu", MB8843, DERIVED_CLOCK(1,1)) /* parent clock, internally divided by 6 */
-// MCFG_MB88XX_READ_K_CB(READ8(*this, namco_51xx_device, namco_51xx_K_r))
-// MCFG_MB88XX_WRITE_O_CB(WRITE8(*this, namco_51xx_device, namco_51xx_O_w))
-// MCFG_MB88XX_READ_R0_CB(READ8(*this, namco_51xx_device, namco_51xx_R0_r))
-// MCFG_MB88XX_READ_R2_CB(READ8(*this, namco_51xx_device, namco_51xx_R2_r))
- MCFG_DEVICE_DISABLE()
-MACHINE_CONFIG_END
+void namco_51xx_device::device_add_mconfig(machine_config &config)
+{
+ MB8843(config, m_cpu, DERIVED_CLOCK(1,1)); /* parent clock, internally divided by 6 */
+// m_cpu->read_k().set(FUNC(namco_51xx_device::namco_51xx_K_r));
+// m_cpu->write_o().set(FUNC(namco_51xx_device::namco_51xx_O_w));
+// m_cpu->read_r<0>().set(FUNC(namco_51xx_device::namco_51xx_R0_r));
+// m_cpu->read_r<2>().set(FUNC(namco_51xx_device::namco_51xx_R2_r));
+ m_cpu->set_disable();
+}
//-------------------------------------------------
// device_rom_region - return a pointer to the