summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/vd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/vd.cpp')
-rw-r--r--src/mame/drivers/vd.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/drivers/vd.cpp b/src/mame/drivers/vd.cpp
index 2d56a9afaa8..e06b9053ff7 100644
--- a/src/mame/drivers/vd.cpp
+++ b/src/mame/drivers/vd.cpp
@@ -186,12 +186,13 @@ void vd_state::machine_reset()
m_t_c = 0;
}
-MACHINE_CONFIG_START(vd_state::vd)
+void vd_state::vd(machine_config &config)
+{
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu", Z80, 4000000)
- MCFG_DEVICE_PROGRAM_MAP(vd_map)
- MCFG_DEVICE_IO_MAP(vd_io)
- MCFG_TIMER_DRIVER_ADD_PERIODIC("irq", vd_state, irq, attotime::from_hz(484))
+ Z80(config, m_maincpu, 4000000);
+ m_maincpu->set_addrmap(AS_PROGRAM, &vd_state::vd_map);
+ m_maincpu->set_addrmap(AS_IO, &vd_state::vd_io);
+ TIMER(config, "irq").configure_periodic(FUNC(vd_state::irq), attotime::from_hz(484));
/* Sound */
genpin_audio(config);
@@ -207,7 +208,7 @@ MACHINE_CONFIG_START(vd_state::vd)
/* Video */
config.set_default_layout(layout_vd);
-MACHINE_CONFIG_END
+}
/*-------------------------------------------------------------------
/ Break '86 (1986)