diff options
author | 2020-11-28 20:45:36 -0500 | |
---|---|---|
committer | 2020-11-28 20:45:36 -0500 | |
commit | 37f77a51622f0a893d283c83d1401d2eba158073 (patch) | |
tree | edf5f941aebe899b7c77b31f537c83f4f5b4af42 | |
parent | 9cc02b1fe1f1dba8099a06e6eaf5a67c7019baf7 (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.cpp | 2 |
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; } |