summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m88000/m88000.cpp
diff options
context:
space:
mode:
author Patrick Mackinlay <pmackinlay@hotmail.com>2023-04-05 18:37:10 +0700
committer Patrick Mackinlay <pmackinlay@hotmail.com>2023-04-05 18:37:10 +0700
commit9922c964c93e486824eeac647713502fa931bbe9 (patch)
tree6e7b513efde9f2ce32f664e263a612dbf33647f3 /src/devices/cpu/m88000/m88000.cpp
parent3616e20fac3ee0e93d085535d717c9b5d2847d84 (diff)
m88000: fix unsigned division
Diffstat (limited to 'src/devices/cpu/m88000/m88000.cpp')
-rw-r--r--src/devices/cpu/m88000/m88000.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/cpu/m88000/m88000.cpp b/src/devices/cpu/m88000/m88000.cpp
index deae133b1bd..7e0f6da5e2b 100644
--- a/src/devices/cpu/m88000/m88000.cpp
+++ b/src/devices/cpu/m88000/m88000.cpp
@@ -762,7 +762,7 @@ void mc88100_device::execute(u32 const inst)
if (!(m_cr[PSR] & PSR_SFD1))
{
if (m_r[S2])
- m_r[D] = s32(m_r[S1]) / s32(m_r[S2]);
+ m_r[D] = m_r[S1] / m_r[S2];
else
exception(E_INT_DIVIDE);
}
@@ -1223,6 +1223,8 @@ void mc88100_device::set_cr(unsigned const cr, u32 const data)
case PSR:
case EPSR:
+ if (data & PSR_BO)
+ fatalerror("mc88100: little-endian mode not emulated (%s)\n", machine().describe_context());
m_cr[cr] = (m_cr[cr] & ~PSR_MASK) | (data & PSR_MASK);
break;