h8_intc.cpp: fix interpretation of IPR bits for the H8S CPUs. psr340 boots now. [R. Belmont]

This commit is contained in:
arbee 2020-11-28 20:45:36 -05:00
parent 9cc02b1fe1
commit 37f77a5162

View File

@ -382,5 +382,5 @@ void h8s_intc_device::get_priority(int vect, int &icr_pri, int &ipr_pri) const
}
icr_pri = (icr >> (slot ^ 7)) & 1;
ipr_pri = (ipr[slot >> 1] >> (slot & 1 ? 4 : 0)) & 7;
ipr_pri = (ipr[slot >> 1] >> (slot & 1 ? 0 : 4)) & 7;
}