summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/lynx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/lynx.cpp')
-rw-r--r--src/mame/drivers/lynx.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/lynx.cpp b/src/mame/drivers/lynx.cpp
index 10d413dadba..a5f71e1a7aa 100644
--- a/src/mame/drivers/lynx.cpp
+++ b/src/mame/drivers/lynx.cpp
@@ -74,7 +74,8 @@ void lynx_state::sound_cb()
lynx_timer_count_down(1);
}
-MACHINE_CONFIG_START(lynx_state::lynx)
+void lynx_state::lynx(machine_config &config)
+{
/* basic machine hardware */
M65SC02(config, m_maincpu, 4000000); /* vti core, integrated in vlsi, stz, but not bbr bbs */
m_maincpu->set_addrmap(AS_PROGRAM, &lynx_state::lynx_mem);
@@ -103,14 +104,13 @@ MACHINE_CONFIG_START(lynx_state::lynx)
/* devices */
QUICKLOAD(config, "quickload", "o").set_load_callback(FUNC(lynx_state::quickload_cb), this);
- MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, "lynx_cart")
- MCFG_GENERIC_EXTENSIONS("lnx,lyx")
- MCFG_GENERIC_MANDATORY
- MCFG_GENERIC_LOAD(lynx_state, lynx_cart)
+ generic_cartslot_device &cartslot(GENERIC_CARTSLOT(config, "cartslot", generic_plain_slot, "lynx_cart", "lnx,lyx"));
+ cartslot.set_must_be_loaded(true);
+ cartslot.set_device_load(FUNC(lynx_state::cart_load), this);
/* Software lists */
SOFTWARE_LIST(config, "cart_list").set_original("lynx");
-MACHINE_CONFIG_END
+}
#if 0
void lynx_state::lynx2(machine_config &config)