summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatarGravatar Angelo Salese <angelosa@users.noreply.github.com>2011-12-05 17:56:06 +0000
committerGravatarGravatar Angelo Salese <angelosa@users.noreply.github.com>2011-12-05 17:56:06 +0000
commite139c6edde4d0b96f55b6cb23f7b434093c0efac (patch) (github)
tree19d6e80e661e43862b84d6f183d35d311cd893a5 /src
parentd1698396f5c6a6f7d2a18de5286794cd059cad41 (diff)
downloadmame-e139c6edde4d0b96f55b6cb23f7b434093c0efac.tar.bz2
mame-e139c6edde4d0b96f55b6cb23f7b434093c0efac.zip
Better fix for Break Thru
Diffstat (limited to 'src')
-rw-r--r--src/mame/drivers/brkthru.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mame/drivers/brkthru.c b/src/mame/drivers/brkthru.c
index ec082e09302..82521d02b08 100644
--- a/src/mame/drivers/brkthru.c
+++ b/src/mame/drivers/brkthru.c
@@ -72,6 +72,9 @@ static WRITE8_HANDLER( brkthru_1803_w )
/* bit 0 = NMI enable */
state->m_nmi_mask = ~data & 1;
+ if(data & 2)
+ device_set_input_line(state->m_maincpu, 0, CLEAR_LINE);
+
/* bit 1 = ? maybe IRQ acknowledge */
}
@@ -82,6 +85,10 @@ static WRITE8_HANDLER( darwin_0803_w )
state->m_nmi_mask = data & 1;
logerror("0803 %02X\n",data);
+ if(data & 2)
+ device_set_input_line(state->m_maincpu, 0, CLEAR_LINE);
+
+
/* bit 1 = ? maybe IRQ acknowledge */
}
@@ -97,7 +104,8 @@ static INPUT_CHANGED( coin_inserted )
brkthru_state *state = field.machine().driver_data<brkthru_state>();
/* coin insertion causes an IRQ */
- device_set_input_line(state->m_maincpu, 0, newval ? CLEAR_LINE : ASSERT_LINE);
+ if(oldval)
+ device_set_input_line(state->m_maincpu, 0, ASSERT_LINE);
}