summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2020-11-28 20:45:36 -0500
committer arbee <rb6502@users.noreply.github.com>2020-11-28 20:45:36 -0500
commit37f77a51622f0a893d283c83d1401d2eba158073 (patch)
treeedf5f941aebe899b7c77b31f537c83f4f5b4af42
parent9cc02b1fe1f1dba8099a06e6eaf5a67c7019baf7 (diff)
h8_intc.cpp: fix interpretation of IPR bits for the H8S CPUs. psr340 boots now. [R. Belmont]
-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;
}