summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author Fabio Priuli <etabeta78@users.noreply.github.com>2014-03-25 08:06:59 +0000
committer Fabio Priuli <etabeta78@users.noreply.github.com>2014-03-25 08:06:59 +0000
commite0633e84ac1d43af026511b5d45fc96b4b3820d6 (patch)
tree3e62ce0200aa7e5b4631629c2efad7007032f82b /src/emu
parentda231b40e7f9a6b7966f25513e32f807e5b4d75f (diff)
(MESS) sms: fixed light phaser support through the gender adapter
and adopted RAM init pattern on Export consoles too (Korean systems are acknowledged as Export and some Korean games rely on this) [Enik Land]
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/bus/sms_ctrl/sports.c4
-rw-r--r--src/emu/bus/sms_ctrl/sports.h2
-rw-r--r--src/emu/bus/sms_exp/gender.c8
-rw-r--r--src/emu/bus/sms_exp/gender.h2
-rw-r--r--src/emu/bus/sms_exp/smsexp.c17
5 files changed, 21 insertions, 12 deletions
diff --git a/src/emu/bus/sms_ctrl/sports.c b/src/emu/bus/sms_ctrl/sports.c
index 4b0e184a4d0..2eb0ea0f316 100644
--- a/src/emu/bus/sms_ctrl/sports.c
+++ b/src/emu/bus/sms_ctrl/sports.c
@@ -1,6 +1,6 @@
/**********************************************************************
- Sega Master System "Sports Pad" emulation
+ Sega Master System "Sports Pad" (US model) emulation
Copyright MESS Team.
Visit http://mamedev.org for licensing and usage restrictions.
@@ -112,7 +112,7 @@ ioport_constructor sms_sports_pad_device::device_input_ports() const
//-------------------------------------------------
sms_sports_pad_device::sms_sports_pad_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
- device_t(mconfig, SMS_SPORTS_PAD, "Sports Pad", tag, owner, clock, "sms_sports_pad", __FILE__),
+ device_t(mconfig, SMS_SPORTS_PAD, "Sports Pad US", tag, owner, clock, "sms_sports_pad", __FILE__),
device_sms_control_port_interface(mconfig, *this),
m_sports_in(*this, "SPORTS_IN"),
m_sports_out(*this, "SPORTS_OUT"),
diff --git a/src/emu/bus/sms_ctrl/sports.h b/src/emu/bus/sms_ctrl/sports.h
index 0ce5cc96b09..ab2eaf7377a 100644
--- a/src/emu/bus/sms_ctrl/sports.h
+++ b/src/emu/bus/sms_ctrl/sports.h
@@ -1,6 +1,6 @@
/**********************************************************************
- Sega Master System "Sports Pad" emulation
+ Sega Master System "Sports Pad" (US model) emulation
Copyright MESS Team.
Visit http://mamedev.org for licensing and usage restrictions.
diff --git a/src/emu/bus/sms_exp/gender.c b/src/emu/bus/sms_exp/gender.c
index 0b80deb7c68..1bda24ca090 100644
--- a/src/emu/bus/sms_exp/gender.c
+++ b/src/emu/bus/sms_exp/gender.c
@@ -58,6 +58,14 @@ READ8_MEMBER(sms_gender_adapter_device::read_ram)
return m_subslot->read_ram(space, offset);
}
+int sms_gender_adapter_device::get_lphaser_xoffs()
+{
+ if (m_subslot->m_cart)
+ return m_subslot->m_cart->get_lphaser_xoffs();
+ else
+ return 0;
+}
+
//-------------------------------------------------
// write
diff --git a/src/emu/bus/sms_exp/gender.h b/src/emu/bus/sms_exp/gender.h
index 4458e880688..52f3643b367 100644
--- a/src/emu/bus/sms_exp/gender.h
+++ b/src/emu/bus/sms_exp/gender.h
@@ -40,6 +40,8 @@ public:
virtual DECLARE_READ8_MEMBER(read_ram);
virtual DECLARE_WRITE8_MEMBER(write_ram);
+ virtual int get_lphaser_xoffs();
+
protected:
// device-level overrides
virtual void device_start();
diff --git a/src/emu/bus/sms_exp/smsexp.c b/src/emu/bus/sms_exp/smsexp.c
index e1ddb4969f0..46d16c1a935 100644
--- a/src/emu/bus/sms_exp/smsexp.c
+++ b/src/emu/bus/sms_exp/smsexp.c
@@ -97,6 +97,14 @@ READ8_MEMBER(sms_expansion_slot_device::read_ram)
return 0xff;
}
+int sms_expansion_slot_device::get_lphaser_xoffs()
+{
+ if (m_device)
+ return m_device->get_lphaser_xoffs();
+ else
+ return 0;
+}
+
//-------------------------------------------------
// write
@@ -120,15 +128,6 @@ WRITE8_MEMBER(sms_expansion_slot_device::write_ram)
m_device->write_ram(space, offset, data);
}
-int sms_expansion_slot_device::get_lphaser_xoffs()
-{
- if (m_device)
- return m_device->get_lphaser_xoffs();
- else
- return 0;
-}
-
-
//-------------------------------------------------
// SLOT_INTERFACE( sms_expansion_devices )