summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/sms.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/sms.cpp')
-rw-r--r--src/mame/machine/sms.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mame/machine/sms.cpp b/src/mame/machine/sms.cpp
index 2f915a111a4..4d45f92448a 100644
--- a/src/mame/machine/sms.cpp
+++ b/src/mame/machine/sms.cpp
@@ -1033,10 +1033,7 @@ void sms_state::machine_start()
m_led_pwr = 1;
}
- m_cartslot = machine().device<sega8_cart_slot_device>("slot");
- m_cardslot = machine().device<sega8_card_slot_device>("mycard");
- m_smsexpslot = machine().device<sms_expansion_slot_device>("smsexp");
- m_sgexpslot = machine().device<sg1000_expansion_slot_device>("sgexp");
+ m_cartslot = m_slot.target();
m_space = &m_maincpu->space(AS_PROGRAM);
if (m_mainram == nullptr)
@@ -1158,11 +1155,11 @@ void sms_state::machine_reset()
void smssdisp_state::machine_reset()
{
- sms_state::machine_reset();
-
m_store_control = 0;
m_store_cart_selection_data = 0;
store_select_cart(m_store_cart_selection_data);
+
+ sms_state::machine_reset();
}
READ8_MEMBER(smssdisp_state::sms_store_cart_select_r)