mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
core, fix Pico horizontal irq (on irq level 5)
This commit is contained in:
parent
214a6c624c
commit
ba2b97dc24
5 changed files with 10 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue