summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2020-06-25 11:44:58 +0200
committer hap <happppp@users.noreply.github.com>2020-06-25 11:44:58 +0200
commit24be7ab3002a1458c260fffbf6ab67d0bf61a67f (patch)
tree6b33893c7b25ad8618a8a71d7aa5475183d19ae3
parent7664bed4b7d54296c7c3de1efa36c241051c41b8 (diff)
i86: forgot carry flag for neg opcode (nw)
-rw-r--r--src/devices/cpu/i86/i86.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/i86/i86.cpp b/src/devices/cpu/i86/i86.cpp
index 2ded7b638eb..de5aceba216 100644
--- a/src/devices/cpu/i86/i86.cpp
+++ b/src/devices/cpu/i86/i86.cpp
@@ -2268,7 +2268,7 @@ bool i8086_common_cpu_device::common_op(uint8_t op)
case 0x18: /* NEG */
m_dst = 0;
m_src = tmp;
- SUBB();
+ set_CFB(SUBB());
PutbackRMByte(m_dst);
CLKM(NEGNOT_R8,NEGNOT_M8);
break;
@@ -2358,7 +2358,7 @@ bool i8086_common_cpu_device::common_op(uint8_t op)
case 0x18: /* NEG */
m_dst = 0;
m_src = tmp;
- SUBX();
+ set_CFW(SUBX());
PutbackRMWord(m_dst);
CLKM(NEGNOT_R16,NEGNOT_M16);
break;