diff options
| author | 2008-10-12 14:11:58 +0000 | |
|---|---|---|
| committer | 2008-10-12 14:11:58 +0000 | |
| commit | 61d2dcd14e555a7b4eeeee6462a42ed138d7a503 (patch) | |
| tree | c22c4239f2878a112c6f5fadc641852777a0e69c /src | |
| parent | 44f0b5a68a25de59e9b059893d83e8b46aea22e2 (diff) | |
02533: nbapbp: CPU audio: PULSE_LINE used with level-detected IRQ 1
Diffstat (limited to 'src')
| -rw-r--r-- | src/mame/drivers/hornet.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mame/drivers/hornet.c b/src/mame/drivers/hornet.c index a0c9e88b881..81f04736129 100644 --- a/src/mame/drivers/hornet.c +++ b/src/mame/drivers/hornet.c @@ -1304,12 +1304,16 @@ static void jamma_jvs_cmd_exec(void) /*****************************************************************************/ +static TIMER_CALLBACK( irq_off ) +{ + cpunum_set_input_line(machine, 1, param, CLEAR_LINE); +} + static void sound_irq_callback(running_machine *machine, int irq) { - if (irq == 0) - cpunum_set_input_line(machine, 1, INPUT_LINE_IRQ1, PULSE_LINE); - else - cpunum_set_input_line(machine, 1, INPUT_LINE_IRQ2, PULSE_LINE); + int line = (irq == 0) ? INPUT_LINE_IRQ1 : INPUT_LINE_IRQ2; + cpunum_set_input_line(machine, 1, line, ASSERT_LINE); + timer_set(ATTOTIME_IN_USEC(1), NULL, line, irq_off); } static DRIVER_INIT(hornet) |
