summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2011-12-02 15:49:52 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2011-12-02 15:49:52 +0000
commitc5c475a2ae4051c27b05d3eb1a63c90ebbe6aa15 (patch)
treef8e33a6b66a0855147e3312742cfc88b96770606
parent00b10d34d89dece03c9d67f0122d88b42da6149d (diff)
Some regression fixes as per Tafoid notes
-rw-r--r--src/mame/drivers/lwings.c10
-rw-r--r--src/mame/drivers/m63.c2
2 files changed, 10 insertions, 2 deletions
diff --git a/src/mame/drivers/lwings.c b/src/mame/drivers/lwings.c
index e51e4573b35..4f8c3d1b751 100644
--- a/src/mame/drivers/lwings.c
+++ b/src/mame/drivers/lwings.c
@@ -98,6 +98,14 @@ static INTERRUPT_GEN( lwings_interrupt )
device_set_input_line_and_vector(device, 0, HOLD_LINE, 0xd7); /* RST 10h */
}
+static INTERRUPT_GEN( avengers_interrupt )
+{
+ lwings_state *state = device->machine().driver_data<lwings_state>();
+
+ if(state->m_nmi_mask)
+ device_set_input_line(device, INPUT_LINE_NMI, PULSE_LINE);
+}
+
static WRITE8_HANDLER( avengers_protection_w )
{
@@ -857,7 +865,7 @@ static MACHINE_CONFIG_DERIVED( avengers, trojan )
MCFG_CPU_MODIFY("maincpu") //AT: (avengers37b16gre)
MCFG_CPU_PROGRAM_MAP(avengers_map)
- MCFG_CPU_VBLANK_INT("screen", nmi_line_pulse) // RST 38h triggered by software
+ MCFG_CPU_VBLANK_INT("screen", avengers_interrupt) // RST 38h triggered by software
MCFG_CPU_MODIFY("adpcm")
MCFG_CPU_IO_MAP(avengers_adpcm_io_map)
diff --git a/src/mame/drivers/m63.c b/src/mame/drivers/m63.c
index fcda7760651..ea85d27b15d 100644
--- a/src/mame/drivers/m63.c
+++ b/src/mame/drivers/m63.c
@@ -803,7 +803,7 @@ static MACHINE_CONFIG_START( fghtbskt, m63_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", Z80, XTAL_12MHz/4) /* 3 MHz */
MCFG_CPU_PROGRAM_MAP(fghtbskt_map)
- MCFG_CPU_VBLANK_INT("screen", nmi_line_pulse)
+ MCFG_CPU_VBLANK_INT("screen", vblank_irq)
MCFG_CPU_ADD("soundcpu", I8039,XTAL_12MHz/4) /* ????? */
MCFG_CPU_PROGRAM_MAP(i8039_map)