mirror of
https://github.com/holub/mame
synced 2025-05-17 19:24:59 +03:00
02440: abcop, gprider1, rachero: abcop just shows a black flickering screen, rachero gives an error and crashes on exit
This commit is contained in:
parent
a51c28697d
commit
841649ee4c
@ -86,14 +86,29 @@ static void xboard_generic_init(running_machine *machine)
|
|||||||
|
|
||||||
static void update_main_irqs(running_machine *machine)
|
static void update_main_irqs(running_machine *machine)
|
||||||
{
|
{
|
||||||
cpunum_set_input_line(machine, 0, 2, timer_irq_state ? ASSERT_LINE : CLEAR_LINE);
|
int irq = 0;
|
||||||
cpunum_set_input_line(machine, 0, 4, vblank_irq_state ? ASSERT_LINE : CLEAR_LINE);
|
|
||||||
|
|
||||||
if(!gprider_hack)
|
if (timer_irq_state)
|
||||||
cpunum_set_input_line(machine, 0, 6, timer_irq_state && vblank_irq_state ? ASSERT_LINE : CLEAR_LINE);
|
irq |= 2;
|
||||||
|
else
|
||||||
|
cpunum_set_input_line(machine, 0, 2, CLEAR_LINE);
|
||||||
|
|
||||||
|
if (vblank_irq_state)
|
||||||
|
irq |= 4;
|
||||||
|
else
|
||||||
|
cpunum_set_input_line(machine, 0, 4, CLEAR_LINE);
|
||||||
|
|
||||||
if(timer_irq_state || vblank_irq_state)
|
if (gprider_hack && irq > 4)
|
||||||
|
irq = 4;
|
||||||
|
|
||||||
|
if (!(irq==6))
|
||||||
|
cpunum_set_input_line(machine, 0, 6, CLEAR_LINE);
|
||||||
|
|
||||||
|
if (irq)
|
||||||
|
{
|
||||||
|
cpunum_set_input_line(machine, 0, irq, ASSERT_LINE);
|
||||||
cpu_boost_interleave(attotime_zero, ATTOTIME_IN_USEC(100));
|
cpu_boost_interleave(attotime_zero, ATTOTIME_IN_USEC(100));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user