diff options
author | Michaël Banaan Ananas <happppp@users.noreply.github.com> | 2011-09-05 17:06:49 +0000 |
---|---|---|
committer | Michaël Banaan Ananas <happppp@users.noreply.github.com> | 2011-09-05 17:06:49 +0000 |
commit | ddd7bbc78a45d6b4d60577b9242df315b66c4e4d (patch) | |
tree | 9f471128b3c3fba7431eccfc746b096c89109ccc | |
parent | d4afece1fec5105aa53ecaacbd4092865efe625f (diff) |
- priority level of 0 means disabled interrupt
- same-priority interrupts were in wrong order (reversed forloop)
-rw-r--r-- | src/emu/cpu/m37710/m37710.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/cpu/m37710/m37710.c b/src/emu/cpu/m37710/m37710.c index ecf564dbdd9..37b3ce95dbf 100644 --- a/src/emu/cpu/m37710/m37710.c +++ b/src/emu/cpu/m37710/m37710.c @@ -665,9 +665,9 @@ void m37710i_update_irqs(m37710i_cpu_struct *cpustate) { int curirq, pending = LINE_IRQ; int wantedIRQ = -1; - int curpri = -1; + int curpri = 0; - for (curirq = M37710_LINE_MAX - 1; curirq >= 0; curirq--) + for (curirq = 0; curirq < M37710_LINE_MAX; curirq++) { if ((pending & (1 << curirq))) { @@ -688,7 +688,7 @@ void m37710i_update_irqs(m37710i_cpu_struct *cpustate) { // non-maskable wantedIRQ = curirq; - curirq = -1; + curpri = 7; break; // no more processing, NMIs always win } } |