mirror of
https://github.com/holub/mame
synced 2025-05-23 06:08:48 +03:00
02533: nbapbp: CPU audio: PULSE_LINE used with level-detected IRQ 1
This commit is contained in:
parent
44f0b5a68a
commit
61d2dcd14e
@ -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)
|
static void sound_irq_callback(running_machine *machine, int irq)
|
||||||
{
|
{
|
||||||
if (irq == 0)
|
int line = (irq == 0) ? INPUT_LINE_IRQ1 : INPUT_LINE_IRQ2;
|
||||||
cpunum_set_input_line(machine, 1, INPUT_LINE_IRQ1, PULSE_LINE);
|
cpunum_set_input_line(machine, 1, line, ASSERT_LINE);
|
||||||
else
|
timer_set(ATTOTIME_IN_USEC(1), NULL, line, irq_off);
|
||||||
cpunum_set_input_line(machine, 1, INPUT_LINE_IRQ2, PULSE_LINE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static DRIVER_INIT(hornet)
|
static DRIVER_INIT(hornet)
|
||||||
|
Loading…
Reference in New Issue
Block a user