From 04852b19cdf1d51ed14413f9255479bd45b68452 Mon Sep 17 00:00:00 2001 From: 0kmg <9137159+0kmg@users.noreply.github.com> Date: Wed, 23 Nov 2022 22:16:56 -0800 Subject: nintendo/vsnes.cpp: Added missing DIP switch settings for vsmahjng. (#10587) --- src/mame/nintendo/vsnes.cpp | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/src/mame/nintendo/vsnes.cpp b/src/mame/nintendo/vsnes.cpp index 17521fcdbf1..3d09f67ba63 100644 --- a/src/mame/nintendo/vsnes.cpp +++ b/src/mame/nintendo/vsnes.cpp @@ -1503,21 +1503,32 @@ static INPUT_PORTS_START( balonfgt ) PORT_DIPUNUSED_DIPLOC( 0x80, 0x00, "SW2:!8" ) // Manual states this is Unused INPUT_PORTS_END +// TODO: verify DIPs for Rules, Difficulty, and Dora. Finding a copy of the manual would certainly help. static INPUT_PORTS_START( vsmahjng ) PORT_INCLUDE( vsnes_dual_rev ) PORT_START("DSW0") // bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 - PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x00, "SW1:!1" ) - PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x00, "SW1:!2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "SW1:!3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x00, "SW1:!4" ) - PORT_DIPNAME( 0x30, 0x00, "Time" ) PORT_DIPLOCATION("SW1:!5,!6") + PORT_DIPNAME( 0x01, 0x00, "Rules" ) PORT_DIPLOCATION("SW1:!1") + PORT_DIPSETTING( 0x00, "Kansai" ) + PORT_DIPSETTING( 0x01, "Kantou" ) + PORT_DIPNAME( 0x06, 0x00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:!2,!3") + PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) + PORT_DIPSETTING( 0x04, DEF_STR( Normal ) ) + PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) + PORT_DIPSETTING( 0x06, DEF_STR( Hardest ) ) + PORT_DIPNAME( 0x08, 0x00, "Timer" ) PORT_DIPLOCATION("SW1:!4") + PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x30, 0x00, "Initial Time" ) PORT_DIPLOCATION("SW1:!5,!6") PORT_DIPSETTING( 0x30, "30" ) PORT_DIPSETTING( 0x10, "45" ) PORT_DIPSETTING( 0x20, "60" ) PORT_DIPSETTING( 0x00, "90" ) - PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x00, "SW1:!7" ) - PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x00, "SW1:!8" ) + PORT_DIPNAME( 0xc0, 0x00, "Additional Time" ) PORT_DIPLOCATION("SW1:!7,!8") + PORT_DIPSETTING( 0xc0, "8" ) + PORT_DIPSETTING( 0x40, "12" ) + PORT_DIPSETTING( 0x80, "15" ) + PORT_DIPSETTING( 0x00, "20" ) PORT_START("DSW1") // bit 0 and 1 read from bit 3 and 4 on $4016, rest of the bits read on $4017 PORT_SERVICE( 0x01, IP_ACTIVE_HIGH ) PORT_DIPLOCATION("SW2:!1") @@ -1526,9 +1537,13 @@ static INPUT_PORTS_START( vsmahjng ) PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) PORT_DIPSETTING( 0x06, DEF_STR( Free_Play ) ) - PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x00, "SW2:!4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x00, "SW2:!5" ) - PORT_DIPNAME( 0x60, 0x20, "Starting Points" ) PORT_DIPLOCATION("SW2:!6,!7") + PORT_DIPNAME( 0x08, 0x00, "Mawashi" ) PORT_DIPLOCATION("SW2:!4") + PORT_DIPSETTING( 0x08, "Tonnan" ) + PORT_DIPSETTING( 0x00, "Tonton" ) + PORT_DIPNAME( 0x10, 0x00, "Dora" ) PORT_DIPLOCATION("SW2:!5") + PORT_DIPSETTING( 0x00, "?" ) + PORT_DIPSETTING( 0x10, "?" ) + PORT_DIPNAME( 0x60, 0x00, "Starting Points" ) PORT_DIPLOCATION("SW2:!6,!7") PORT_DIPSETTING( 0x60, "15000" ) PORT_DIPSETTING( 0x20, "20000" ) PORT_DIPSETTING( 0x40, "25000" ) -- cgit v1.2.3