diff options
Diffstat (limited to 'src/mame/machine/namco53.cpp')
-rw-r--r-- | src/mame/machine/namco53.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/mame/machine/namco53.cpp b/src/mame/machine/namco53.cpp index e6db0a241ab..dee127b14ba 100644 --- a/src/mame/machine/namco53.cpp +++ b/src/mame/machine/namco53.cpp @@ -170,16 +170,17 @@ void namco_53xx_device::device_start() // device_add_mconfig - add device configuration //------------------------------------------------- -MACHINE_CONFIG_START(namco_53xx_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_53xx_device, K_r)) - MCFG_MB88XX_WRITE_O_CB(WRITE8(*this, namco_53xx_device, O_w)) - MCFG_MB88XX_WRITE_P_CB(WRITE8(*this, namco_53xx_device, P_w)) - MCFG_MB88XX_READ_R0_CB(READ8(*this, namco_53xx_device, R0_r)) - MCFG_MB88XX_READ_R1_CB(READ8(*this, namco_53xx_device, R1_r)) - MCFG_MB88XX_READ_R2_CB(READ8(*this, namco_53xx_device, R2_r)) - MCFG_MB88XX_READ_R3_CB(READ8(*this, namco_53xx_device, R3_r)) -MACHINE_CONFIG_END +void namco_53xx_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_53xx_device::K_r)); + m_cpu->write_o().set(FUNC(namco_53xx_device::O_w)); + m_cpu->write_p().set(FUNC(namco_53xx_device::P_w)); + m_cpu->read_r<0>().set(FUNC(namco_53xx_device::R0_r)); + m_cpu->read_r<1>().set(FUNC(namco_53xx_device::R1_r)); + m_cpu->read_r<2>().set(FUNC(namco_53xx_device::R2_r)); + m_cpu->read_r<3>().set(FUNC(namco_53xx_device::R3_r)); +} //------------------------------------------------- // device_rom_region - return a pointer to the |