summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/sms.c
diff options
context:
space:
mode:
author Fabio Priuli <etabeta78@users.noreply.github.com>2014-03-26 09:36:44 +0000
committer Fabio Priuli <etabeta78@users.noreply.github.com>2014-03-26 09:36:44 +0000
commitc3680970956307f09ffcc08f6da2b4624e9f1ad5 (patch)
tree076e98db773adcd36c4e5fbed71fceb5ccbd567a /src/mess/machine/sms.c
parent49b16af8c99ac963bce777dd9985ac89d1da1848 (diff)
(MESS) sms: fixed Korean Gam*Boy 2 being detected as a Japanese
machine when a real unit does not. [Enik Land] New driver added : - Samsung Gam*Boy I [Enik Land]
Diffstat (limited to 'src/mess/machine/sms.c')
-rw-r--r--src/mess/machine/sms.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/mess/machine/sms.c b/src/mess/machine/sms.c
index 3fc56cf39ee..b8f414169a7 100644
--- a/src/mess/machine/sms.c
+++ b/src/mess/machine/sms.c
@@ -87,7 +87,7 @@ void sms_state::sms_get_inputs( address_space &space )
// Sega Mark III does not have TH line connected.
// Also, the japanese Master System does not set port $dd with TH input.
- if (!m_is_region_japan)
+ if (!m_is_mark_iii && !m_is_smsj)
{
m_port_dd_reg &= ~0x40 | data1; // TH ctrl1
m_port_dd_reg &= ~0x80 | (data2 << 1); // TH ctrl2
@@ -276,7 +276,7 @@ READ8_MEMBER(sms_state::sms_input_port_dd_r)
m_port_dd_reg &= ~0x08 | ((m_io_ctrl_reg & 0x40) >> 3);
}
- if (m_is_region_japan)
+ if (m_is_smsj)
{
// For japanese Master System, set upper 4 bits with TH/TR
// direction bits of IO control register, according to Enri's
@@ -963,15 +963,31 @@ DRIVER_INIT_MEMBER(sms_state,sms1)
DRIVER_INIT_MEMBER(sms_state,smsj)
{
m_is_region_japan = 1;
+ m_is_smsj = 1;
m_has_bios_2000 = 1;
m_has_fm = 1;
}
-DRIVER_INIT_MEMBER(sms_state,sms2kr)
+DRIVER_INIT_MEMBER(sms_state,sms1krfm)
{
m_is_region_japan = 1;
+ m_has_bios_2000 = 1;
+ m_has_fm = 1;
+}
+
+
+DRIVER_INIT_MEMBER(sms_state,sms1kr)
+{
+ m_is_region_japan = 1;
+ m_has_bios_2000 = 1;
+}
+
+
+DRIVER_INIT_MEMBER(sms_state,smskr)
+{
m_has_bios_full = 1;
+ // Despite Korean sms1 version is detected as Japanese region, the sms2 version is not.
}