summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/x07.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/x07.cpp')
-rw-r--r--src/mame/drivers/x07.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mame/drivers/x07.cpp b/src/mame/drivers/x07.cpp
index a6af4c9e50a..5c63df1f68e 100644
--- a/src/mame/drivers/x07.cpp
+++ b/src/mame/drivers/x07.cpp
@@ -1052,7 +1052,7 @@ inline void x07_state::draw_udk()
}
}
-DEVICE_IMAGE_LOAD_MEMBER( x07_state, x07_card )
+DEVICE_IMAGE_LOAD_MEMBER( x07_state::card_load )
{
uint32_t size = m_card->common_get_size("rom");
@@ -1479,8 +1479,8 @@ void x07_state::machine_reset()
m_maincpu->set_state_int(Z80_PC, 0xc3c3);
}
-MACHINE_CONFIG_START(x07_state::x07)
-
+void x07_state::x07(machine_config &config)
+{
/* basic machine hardware */
NSC800(config, m_maincpu, 15.36_MHz_XTAL / 4);
m_maincpu->set_addrmap(AS_PROGRAM, &x07_state::x07_mem);
@@ -1520,9 +1520,7 @@ MACHINE_CONFIG_START(x07_state::x07)
RAM(config, RAM_TAG).set_default_size("16K").set_extra_options("8K,12K,20K,24K");
/* Memory Card */
- MCFG_GENERIC_CARTSLOT_ADD("cardslot", generic_romram_plain_slot, "x07_card")
- MCFG_GENERIC_EXTENSIONS("rom,bin")
- MCFG_GENERIC_LOAD(x07_state, x07_card)
+ GENERIC_CARTSLOT(config, "cardslot", generic_romram_plain_slot, "x07_card", "rom,bin").set_device_load(FUNC(x07_state::card_load), this);
/* cassette */
CASSETTE(config, m_cassette);
@@ -1533,7 +1531,7 @@ MACHINE_CONFIG_START(x07_state::x07)
/* Software lists */
SOFTWARE_LIST(config, "card_list").set_original("x07_card");
SOFTWARE_LIST(config, "cass_list").set_original("x07_cass");
-MACHINE_CONFIG_END
+}
/* ROM definition */
ROM_START( x07 )