summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/gmaster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/gmaster.cpp')
-rw-r--r--src/mame/drivers/gmaster.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mame/drivers/gmaster.cpp b/src/mame/drivers/gmaster.cpp
index b9d30e78a13..8b0c2841ccb 100644
--- a/src/mame/drivers/gmaster.cpp
+++ b/src/mame/drivers/gmaster.cpp
@@ -327,7 +327,8 @@ void gmaster_state::machine_start()
}
-MACHINE_CONFIG_START(gmaster_state::gmaster)
+void gmaster_state::gmaster(machine_config &config)
+{
upd7810_device &upd(UPD7810(config, m_maincpu, 12_MHz_XTAL/2/*?*/)); // µPD78C11 in the unit
upd.set_addrmap(AS_PROGRAM, &gmaster_state::gmaster_mem);
upd.pa_in_cb().set_ioport("JOY");
@@ -353,11 +354,11 @@ MACHINE_CONFIG_START(gmaster_state::gmaster)
SPEAKER(config, "mono").front_center();
SPEAKER_SOUND(config, m_speaker).add_route(0, "mono", 0.50);
- MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_linear_slot, "gmaster_cart")
- MCFG_GENERIC_MANDATORY
+ GENERIC_CARTSLOT(config, m_cart, generic_linear_slot, "gmaster_cart").set_must_be_loaded(true);
+
SOFTWARE_LIST(config, "cart_list").set_original("gmaster");
-MACHINE_CONFIG_END
+}
ROM_START(gmaster)