Actually I think it's safer like this (otherwise you possibly miss an irq if both are enabled), nw

This commit is contained in:
Angelo Salese 2013-02-18 21:50:47 +00:00
parent 6ab4a9f168
commit 713087264a

View File

@ -869,8 +869,7 @@ void sh2_recalc_irq(sh2_state *sh2)
vector = (sh2->m[0x68]) & 0x7f;
}
}
if((sh2->m[0x67] & 6) == 6 && sh2->dma_irq[1]) {
else if((sh2->m[0x67] & 6) == 6 && sh2->dma_irq[1]) {
level = (sh2->m[0x38] >> 8) & 15;
if(level > irq) {
irq = level;