From b0a7a139d888c8929c08834bbd6522489f50b420 Mon Sep 17 00:00:00 2001 From: Steven Coomber <81829553+scoomby@users.noreply.github.com> Date: Sat, 4 Dec 2021 15:10:01 +0000 Subject: [PATCH] zr107.cpp: Corrected Transmission Type DIP switch label and inputs. (#8801) --- src/mame/drivers/zr107.cpp | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/mame/drivers/zr107.cpp b/src/mame/drivers/zr107.cpp index fccd01124da..48d167b1d44 100644 --- a/src/mame/drivers/zr107.cpp +++ b/src/mame/drivers/zr107.cpp @@ -579,14 +579,6 @@ void zr107_state::sharc_memmap(address_map &map) static INPUT_PORTS_START( zr107 ) - PORT_START("IN0") - PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Start/View") - PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("Shift Up") - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("Shift Down") - PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("AT/MT Switch") PORT_TOGGLE - PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Service Button") PORT_CODE(KEYCODE_9) - PORT_BIT( 0x0b, IP_ACTIVE_LOW, IPT_UNKNOWN ) - PORT_START("IN1") PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) @@ -614,6 +606,15 @@ INPUT_PORTS_END static INPUT_PORTS_START( midnrun ) PORT_INCLUDE( zr107 ) + PORT_START("IN0") + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Start/View") + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("Shift Up") PORT_4WAY + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("Shift Down") PORT_4WAY + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_NAME("Auto Shift") PORT_4WAY PORT_TOGGLE PORT_CONDITION("IN3", 0x02, EQUALS, 0x02) + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("AT/MT Switch") PORT_CONDITION("IN3", 0x02, EQUALS, 0x00) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Service Button") + PORT_BIT( 0x0b, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_START("IN3") PORT_SERVICE_NO_TOGGLE( 0x80, IP_ACTIVE_LOW ) PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) @@ -624,9 +625,9 @@ static INPUT_PORTS_START( midnrun ) PORT_DIPSETTING( 0x08, "2" ) PORT_DIPSETTING( 0x04, "3" ) PORT_DIPSETTING( 0x00, "4" ) - PORT_DIPNAME( 0x02, 0x02, "Transmission Type" ) PORT_DIPLOCATION("SW:2") - PORT_DIPSETTING( 0x02, "Button" ) - PORT_DIPSETTING( 0x00, "'T'Gate" ) //unused + PORT_DIPNAME( 0x02, 0x00, "Transmission Type" ) PORT_DIPLOCATION("SW:2") + PORT_DIPSETTING( 0x02, "'T'Gate" ) + PORT_DIPSETTING( 0x00, "Button" ) PORT_DIPNAME( 0x01, 0x01, "CG Board Type" ) PORT_DIPLOCATION("SW:1") PORT_DIPSETTING( 0x01, "Single" ) PORT_DIPSETTING( 0x00, "Twin" ) //unused @@ -644,7 +645,7 @@ INPUT_PORTS_END static INPUT_PORTS_START( jetwave ) PORT_INCLUDE( zr107 ) - PORT_MODIFY("IN0") + PORT_START("IN0") PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Start/View") PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("T-Center") //Non-analog acell PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Angle")