summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Patrick Mackinlay <pmackinlay@hotmail.com>2020-12-10 12:13:57 +0700
committer Patrick Mackinlay <pmackinlay@hotmail.com>2020-12-10 12:13:57 +0700
commit50ef9017fa950804e908f9ff7be0f7382e81ba45 (patch)
treee75e99d860cc51ac67964c742822b2c294a5c143
parent398d998881ca046706a2797ee2ce0e105fc2790a (diff)
romp: fix divide step carry and overflow flags
-rw-r--r--src/devices/cpu/romp/romp.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/devices/cpu/romp/romp.cpp b/src/devices/cpu/romp/romp.cpp
index d995def54c2..d95404c1a89 100644
--- a/src/devices/cpu/romp/romp.cpp
+++ b/src/devices/cpu/romp/romp.cpp
@@ -714,6 +714,8 @@ void romp_device::execute_run()
break;
case 0xb6: // d: divide step
{
+ m_scr[CS] &= ~(CS_C | CS_O);
+
s64 sum = (s64(s32(m_gpr[R2])) << 1) | (m_scr[MQ] >> 31);
if (BIT(m_gpr[R2], 31) == BIT(m_gpr[R3], 31))