From 55d1ebc2394d324f1a9e85b5f40cb4094516af8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Banaan=20Ananas?= Date: Wed, 16 May 2012 11:44:56 +0000 Subject: [PATCH] undo workarounds not needed anymore after micko's ioport fix --- src/mame/drivers/brkthru.c | 2 +- src/mame/drivers/exidy440.c | 2 +- src/mame/drivers/exprraid.c | 4 ++-- src/mame/drivers/metlclsh.c | 2 +- src/mame/drivers/tryout.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mame/drivers/brkthru.c b/src/mame/drivers/brkthru.c index 584fca50797..3952ab043ae 100644 --- a/src/mame/drivers/brkthru.c +++ b/src/mame/drivers/brkthru.c @@ -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 (oldval) device_set_input_line(m_maincpu, 0, ASSERT_LINE); } diff --git a/src/mame/drivers/exidy440.c b/src/mame/drivers/exidy440.c index 6aa6f563724..6d82a035d9e 100644 --- a/src/mame/drivers/exidy440.c +++ b/src/mame/drivers/exidy440.c @@ -255,7 +255,7 @@ Who Dunnit 1988 6809 INPUT_CHANGED_MEMBER(exidy440_state::coin_inserted) { /* if we got a coin, set the IRQ on the main CPU */ - if (newval) + if (oldval) cputag_set_input_line(machine(), "maincpu", 0, ASSERT_LINE); } diff --git a/src/mame/drivers/exprraid.c b/src/mame/drivers/exprraid.c index a5cae5bd1ea..91564d4498b 100644 --- a/src/mame/drivers/exprraid.c +++ b/src/mame/drivers/exprraid.c @@ -278,12 +278,12 @@ ADDRESS_MAP_END INPUT_CHANGED_MEMBER(exprraid_state::coin_inserted_deco16) { - device_set_input_line(m_maincpu, DECO16_IRQ_LINE, newval ? ASSERT_LINE : CLEAR_LINE); + device_set_input_line(m_maincpu, DECO16_IRQ_LINE, oldval ? ASSERT_LINE : CLEAR_LINE); } INPUT_CHANGED_MEMBER(exprraid_state::coin_inserted_nmi) { - device_set_input_line(m_maincpu, INPUT_LINE_NMI, newval ? ASSERT_LINE : CLEAR_LINE); + device_set_input_line(m_maincpu, INPUT_LINE_NMI, oldval ? ASSERT_LINE : CLEAR_LINE); } static INPUT_PORTS_START( exprraid ) diff --git a/src/mame/drivers/metlclsh.c b/src/mame/drivers/metlclsh.c index d6452c5a979..642a8c9eabe 100644 --- a/src/mame/drivers/metlclsh.c +++ b/src/mame/drivers/metlclsh.c @@ -130,7 +130,7 @@ ADDRESS_MAP_END INPUT_CHANGED_MEMBER(metlclsh_state::coin_inserted) { - if (newval) + if (oldval) cputag_set_input_line(machine(), "sub", INPUT_LINE_NMI, ASSERT_LINE); } diff --git a/src/mame/drivers/tryout.c b/src/mame/drivers/tryout.c index a0e4b48e296..536959da99a 100644 --- a/src/mame/drivers/tryout.c +++ b/src/mame/drivers/tryout.c @@ -83,7 +83,7 @@ ADDRESS_MAP_END INPUT_CHANGED_MEMBER(tryout_state::coin_inserted) { - if (newval) + if (oldval) cputag_set_input_line(machine(), "maincpu", INPUT_LINE_NMI, ASSERT_LINE); }