summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Patrick Mackinlay <pmackinlay@hotmail.com>2020-10-08 12:32:56 +0700
committer Patrick Mackinlay <pmackinlay@hotmail.com>2020-10-08 12:32:56 +0700
commit435485fd013698c150780005dddd293aee76e04e (patch)
tree32f04426add20f23094decb4811791f0cfe10163
parenta17818fec9b162294371e65a7e6a0fdc596c906a (diff)
ns32000: one more bug fix
-rw-r--r--src/devices/cpu/ns32000/ns32000.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/devices/cpu/ns32000/ns32000.cpp b/src/devices/cpu/ns32000/ns32000.cpp
index 1680955a7ac..b0807bdab8d 100644
--- a/src/devices/cpu/ns32000/ns32000.cpp
+++ b/src/devices/cpu/ns32000/ns32000.cpp
@@ -530,6 +530,9 @@ template <int Width> void ns32000_device<Width>::interrupt(unsigned const vector
// TODO: flush queue
m_sequential = false;
+
+ if (trap && (machine().debug_flags & DEBUG_FLAG_ENABLED))
+ debug()->exception_hook(vector);
}
template <int Width> void ns32000_device<Width>::execute_run()
@@ -1647,7 +1650,7 @@ template <int Width> void ns32000_device<Width>::execute_run()
else
m_psr &= ~PSR_F;
- m_r[mode[1].gen] |= ~(1U << (offset & 31));
+ m_r[mode[1].gen] |= (1U << (offset & 31));
}
else
{