summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/devices/cpu/h8/h8_intc.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}