core, fix Pico horizontal irq (on irq level 5)

This commit is contained in:
kub 2024-01-20 17:15:51 +01:00
parent 214a6c624c
commit ba2b97dc24
5 changed files with 10 additions and 7 deletions

View file

@ -35,7 +35,8 @@ static int do_ack(int level)
if (pv->pending_ints & pv->reg[1] & 0x20) {
pv->pending_ints &= ~0x20;
pv->status &= ~SR_F;
return (pv->reg[0] & pv->pending_ints & 0x10) >> 2;
if (pv->reg[0] & pv->pending_ints & 0x10)
return pv->hint_irq;
}
else if (pv->pending_ints & pv->reg[0] & 0x10)
pv->pending_ints &= ~0x10;