updated prev commit (no regressions here tho)

This commit is contained in:
Michaël Banaan Ananas 2012-05-07 12:09:58 +00:00
parent 27dd86c42f
commit a50e8f5ca9
4 changed files with 7 additions and 7 deletions

View File

@ -99,7 +99,7 @@ WRITE8_MEMBER(brkthru_state::brkthru_soundlatch_w)
INPUT_CHANGED_MEMBER(brkthru_state::coin_inserted)
{
/* coin insertion causes an IRQ */
if(newval)
if (newval)
device_set_input_line(m_maincpu, 0, ASSERT_LINE);
}

View File

@ -130,7 +130,7 @@ ADDRESS_MAP_END
INPUT_CHANGED_MEMBER(metlclsh_state::coin_inserted)
{
if(newval != oldval)
if (newval)
cputag_set_input_line(machine(), "sub", INPUT_LINE_NMI, ASSERT_LINE);
}
@ -177,8 +177,8 @@ static INPUT_PORTS_START( metlclsh )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, metlclsh_state,coin_inserted, 0)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, metlclsh_state,coin_inserted, 0)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, metlclsh_state,coin_inserted, 0)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, metlclsh_state,coin_inserted, 0)
PORT_START("DSW") /* c003 */
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) )
@ -197,7 +197,7 @@ static INPUT_PORTS_START( metlclsh )
PORT_DIPSETTING( 0x10, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // cpu2 will clr c040 on startup forever
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, metlclsh_state,coin_inserted, 0)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, metlclsh_state,coin_inserted, 0)
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_VBLANK("screen")
INPUT_PORTS_END

View File

@ -83,7 +83,7 @@ ADDRESS_MAP_END
INPUT_CHANGED_MEMBER(tryout_state::coin_inserted)
{
if(newval != oldval)
if (newval)
cputag_set_input_line(machine(), "maincpu", INPUT_LINE_NMI, ASSERT_LINE);
}

View File

@ -89,7 +89,7 @@ CUSTOM_INPUT_MEMBER(vicdual_state::vicdual_read_coin_status)
INPUT_CHANGED_MEMBER(vicdual_state::coin_changed)
{
if (newval && !oldval)
if (newval)
{
/* increment the coin counter */
coin_counter_w(machine(), 0, 1);