summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/decodmd2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/decodmd2.cpp')
-rw-r--r--src/mame/video/decodmd2.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/mame/video/decodmd2.cpp b/src/mame/video/decodmd2.cpp
index 57e4eacbe02..972c6b95c1a 100644
--- a/src/mame/video/decodmd2.cpp
+++ b/src/mame/video/decodmd2.cpp
@@ -128,19 +128,20 @@ void decodmd_type2_device::decodmd2_map(address_map &map)
map(0x8000, 0xffff).bankr("dmdbank2"); // last 32k of ROM
}
-MACHINE_CONFIG_START(decodmd_type2_device::device_add_mconfig)
+void decodmd_type2_device::device_add_mconfig(machine_config &config)
+{
/* basic machine hardware */
- MCFG_DEVICE_ADD("dmdcpu", MC6809E, XTAL(8'000'000) / 4)
- MCFG_DEVICE_PROGRAM_MAP(decodmd2_map)
+ MC6809E(config, m_cpu, XTAL(8'000'000) / 4);
+ m_cpu->set_addrmap(AS_PROGRAM, &decodmd_type2_device::decodmd2_map);
- MCFG_QUANTUM_TIME(attotime::from_hz(60))
+ config.m_minimum_quantum = attotime::from_hz(60);
- MCFG_TIMER_DRIVER_ADD_PERIODIC("firq_timer", decodmd_type2_device, dmd_firq, attotime::from_hz(80))
+ TIMER(config, "firq_timer", 0).configure_periodic(timer_device::expired_delegate(FUNC(decodmd_type2_device::dmd_firq), this), attotime::from_hz(80));
- MCFG_MC6845_ADD("dmd6845", MC6845, nullptr, XTAL(8'000'000) / 8) // TODO: confirm clock speed
- MCFG_MC6845_SHOW_BORDER_AREA(false)
- MCFG_MC6845_CHAR_WIDTH(8)
- MCFG_MC6845_UPDATE_ROW_CB(decodmd_type2_device, crtc_update_row)
+ MC6845(config, m_mc6845, XTAL(8'000'000) / 8); // TODO: confirm clock speed
+ m_mc6845->set_show_border_area(false);
+ m_mc6845->set_char_width(8);
+ m_mc6845->set_update_row_callback(FUNC(decodmd_type2_device::crtc_update_row), this);
screen_device &screen(SCREEN(config, "dmd", SCREEN_TYPE_RASTER));
screen.set_native_aspect();
@@ -150,7 +151,7 @@ MACHINE_CONFIG_START(decodmd_type2_device::device_add_mconfig)
screen.set_refresh_hz(60);
RAM(config, RAM_TAG).set_default_size("12K");
-MACHINE_CONFIG_END
+}
decodmd_type2_device::decodmd_type2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)