From 37f77a51622f0a893d283c83d1401d2eba158073 Mon Sep 17 00:00:00 2001 From: arbee Date: Sat, 28 Nov 2020 20:45:36 -0500 Subject: [PATCH] h8_intc.cpp: fix interpretation of IPR bits for the H8S CPUs. psr340 boots now. [R. Belmont] --- src/devices/cpu/h8/h8_intc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/cpu/h8/h8_intc.cpp b/src/devices/cpu/h8/h8_intc.cpp index 94e6e3fdad0..8b8c737572b 100644 --- a/src/devices/cpu/h8/h8_intc.cpp +++ b/src/devices/cpu/h8/h8_intc.cpp @@ -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; }