diff options
Diffstat (limited to 'src/mame/drivers/rbmk.cpp')
-rw-r--r-- | src/mame/drivers/rbmk.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/rbmk.cpp b/src/mame/drivers/rbmk.cpp index f971b2bef54..7f1d6311c00 100644 --- a/src/mame/drivers/rbmk.cpp +++ b/src/mame/drivers/rbmk.cpp @@ -93,7 +93,7 @@ private: required_shared_ptr<uint16_t> m_vidram; required_device<cpu_device> m_maincpu; - required_device<cpu_device> m_mcu; + required_device<at89c4051_device> m_mcu; required_device<eeprom_serial_93cxx_device> m_eeprom; required_device<gfxdecode_device> m_gfxdecode; required_device<palette_device> m_palette; @@ -570,10 +570,10 @@ MACHINE_CONFIG_START(rbmk_state::rbmk) MCFG_DEVICE_PROGRAM_MAP(rbmk_mem) MCFG_DEVICE_VBLANK_INT_DRIVER("screen", rbmk_state, irq1_line_hold) - MCFG_DEVICE_ADD("mcu", AT89C4051, 22000000 / 4) // frequency isn't right - MCFG_DEVICE_PROGRAM_MAP(mcu_mem) - MCFG_DEVICE_IO_MAP(mcu_io) - MCFG_MCS51_PORT_P3_OUT_CB(WRITE8(*this, rbmk_state, mcu_io_mux_w)) + AT89C4051(config, m_mcu, 22000000 / 4); // frequency isn't right + m_mcu->set_addrmap(AS_PROGRAM, &rbmk_state::mcu_mem); + m_mcu->set_addrmap(AS_IO, &rbmk_state::mcu_io); + m_mcu->port_out_cb<3>().set(FUNC(rbmk_state::mcu_io_mux_w)); MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_rbmk) |