summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/tlcs90/tlcs90.c
diff options
context:
space:
mode:
author Luca Elia <lucaelia@mamedev.org>2009-03-23 21:26:46 +0000
committer Luca Elia <lucaelia@mamedev.org>2009-03-23 21:26:46 +0000
commitc5da27ead915974cd757933097a218730eddff21 (patch)
tree302bfb344d8db540bc6dfd285f9c755f2cb05064 /src/emu/cpu/tlcs90/tlcs90.c
parent818d24a1d207a78f2147e75b1a8d1772a1d7a9b9 (diff)
Fixed pending IRQs handling in the TLCS-90 CPU core [Luca Elia]
New games added or promoted from NOT_WORKING status --------------------------------------------------- Mahjong Vegas (unprotected set) [Luca Elia, Uki]
Diffstat (limited to 'src/emu/cpu/tlcs90/tlcs90.c')
-rw-r--r--src/emu/cpu/tlcs90/tlcs90.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emu/cpu/tlcs90/tlcs90.c b/src/emu/cpu/tlcs90/tlcs90.c
index 70758e7997a..a83d16b7b57 100644
--- a/src/emu/cpu/tlcs90/tlcs90.c
+++ b/src/emu/cpu/tlcs90/tlcs90.c
@@ -1316,8 +1316,13 @@ static void check_interrupts(t90_Regs *cpustate)
return;
for (irq = INT0; irq < INTMAX; irq++)
+ {
if ( cpustate->irq_state & cpustate->irq_mask & (1 << irq) )
+ {
take_interrupt( cpustate, irq );
+ return;
+ }
+ }
}
static void set_irq_line(t90_Regs *cpustate, int irq, int state)