dariusu: add continue price dipswitch

vigilant: swap punch/kick buttons to match with arcade cabinet
This commit is contained in:
hap 2021-09-05 15:08:57 +02:00
parent 40af517851
commit fbd121cf43
2 changed files with 30 additions and 22 deletions

View File

@ -499,7 +499,6 @@ void darius_state::darius_sound2_io_map(address_map &map)
INPUT PORTS, DIPs
***********************************************************/
#define TAITO_COINAGE_JAPAN_16 \
PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:5,6") \
PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) \
@ -544,7 +543,7 @@ static INPUT_PORTS_START( darius )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("DSW") /* DSW */
PORT_START("DSW")
PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:1")
PORT_DIPSETTING( 0x0001, DEF_STR( Off ) )
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
@ -589,23 +588,32 @@ static INPUT_PORTS_START( darius )
PORT_DIPSETTING( 0x8000, DEF_STR( Yes ) )
INPUT_PORTS_END
static INPUT_PORTS_START( dariusu ) /* The US version uses the Japan coinage settings & Extra Version has continue */
static INPUT_PORTS_START( dariuse )
PORT_INCLUDE( darius )
PORT_MODIFY("DSW") /* DSW */
PORT_MODIFY("DSW")
TAITO_COINAGE_JAPAN_16
INPUT_PORTS_END
static INPUT_PORTS_START( dariusj )
PORT_INCLUDE( darius )
static INPUT_PORTS_START( dariusj ) // No Continue for this version
PORT_INCLUDE( dariuse )
PORT_MODIFY("DSW") /* DSW */
TAITO_COINAGE_JAPAN_16
PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:8") /* No Continue for this version */
PORT_MODIFY("DSW")
PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:8")
PORT_DIPSETTING( 0x8000, DEF_STR( Off ) )
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
INPUT_PORTS_END
static INPUT_PORTS_START( dariusu ) // US version uses the Japan coinage settings
PORT_INCLUDE( dariuse )
PORT_MODIFY("DSW")
PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Continue_Price ) ) PORT_DIPLOCATION("SW2:7")
PORT_DIPSETTING( 0x4000, "Discount" )
PORT_DIPSETTING( 0x0000, "Same as Start" )
INPUT_PORTS_END
/**************************************************************
GFX DECODING
**************************************************************/
@ -1090,4 +1098,4 @@ GAME( 1986, darius, 0, darius, darius, darius_state, empty_init, ROT0,
GAME( 1986, dariusu, darius, darius, dariusu, darius_state, empty_init, ROT0, "Taito America Corporation", "Darius (US, rev 2)", MACHINE_SUPPORTS_SAVE )
GAME( 1986, dariusj, darius, darius, dariusj, darius_state, empty_init, ROT0, "Taito Corporation", "Darius (Japan, rev 1)", MACHINE_SUPPORTS_SAVE )
GAME( 1986, dariuso, darius, darius, dariusj, darius_state, empty_init, ROT0, "Taito Corporation", "Darius (Japan)", MACHINE_SUPPORTS_SAVE )
GAME( 1986, dariuse, darius, darius, dariusu, darius_state, empty_init, ROT0, "Taito Corporation", "Darius Extra Version (Japan)", MACHINE_SUPPORTS_SAVE )
GAME( 1986, dariuse, darius, darius, dariuse, darius_state, empty_init, ROT0, "Taito Corporation", "Darius Extra Version (Japan)", MACHINE_SUPPORTS_SAVE )

View File

@ -161,9 +161,9 @@ static INPUT_PORTS_START( vigilant )
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_BUTTON2 )
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_BUTTON2 )
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_START("IN2")
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL
@ -171,9 +171,9 @@ static INPUT_PORTS_START( vigilant )
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_COCKTAIL
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
PORT_START("DSW1")
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2")
@ -521,12 +521,12 @@ void vigilant_state::vigilant(machine_config &config)
ym2151_device &ymsnd(YM2151(config, "ymsnd", 3.579545_MHz_XTAL));
ymsnd.irq_handler().set("soundirq", FUNC(rst_neg_buffer_device::rst28_w));
ymsnd.add_route(0, "lspeaker", 0.55);
ymsnd.add_route(1, "rspeaker", 0.55);
ymsnd.add_route(0, "lspeaker", 0.28);
ymsnd.add_route(1, "rspeaker", 0.28);
dac_8bit_r2r_device &dac(DAC_8BIT_R2R(config, "dac", 0)); // unknown DAC
dac.add_route(ALL_OUTPUTS, "lspeaker", 1.0);
dac.add_route(ALL_OUTPUTS, "rspeaker", 1.0);
dac.add_route(ALL_OUTPUTS, "lspeaker", 0.5);
dac.add_route(ALL_OUTPUTS, "rspeaker", 0.5);
}
void vigilant_state::buccanrs(machine_config &config)
@ -637,12 +637,12 @@ void vigilant_state::kikcubic(machine_config &config)
ym2151_device &ymsnd(YM2151(config, "ymsnd", 3.579545_MHz_XTAL));
ymsnd.irq_handler().set("soundirq", FUNC(rst_neg_buffer_device::rst28_w));
ymsnd.add_route(0, "lspeaker", 0.55);
ymsnd.add_route(1, "rspeaker", 0.55);
ymsnd.add_route(0, "lspeaker", 0.28);
ymsnd.add_route(1, "rspeaker", 0.28);
dac_8bit_r2r_device &dac(DAC_8BIT_R2R(config, "dac", 0)); // unknown DAC
dac.add_route(ALL_OUTPUTS, "lspeaker", 1.0);
dac.add_route(ALL_OUTPUTS, "rspeaker", 1.0);
dac.add_route(ALL_OUTPUTS, "lspeaker", 0.5);
dac.add_route(ALL_OUTPUTS, "rspeaker", 0.5);
}