summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-12-01 18:24:38 -0500
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-12-01 18:24:38 -0500
commit382253dea4f531a7eed12533c001327bf205d8a0 (patch)
treee3b1a12def6a0c6a8d8faf05201e5ac1ce8d2a50 /src/devices
parent4c14baf3259fda1ff981e4f4b965a002074a927d (diff)
dp8344: Fix EI and DI for EXX and RET instructions (nw)
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/cpu/bcp/dp8344.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/bcp/dp8344.cpp b/src/devices/cpu/bcp/dp8344.cpp
index 2f3c0e6c83e..31ffd971553 100644
--- a/src/devices/cpu/bcp/dp8344.cpp
+++ b/src/devices/cpu/bcp/dp8344.cpp
@@ -672,7 +672,7 @@ void dp8344_device::address_stack_pop(u8 g, bool rf)
// Optionally restore, set or clear GIE
if (BIT(g, 1))
- set_gie(BIT(g, 0));
+ set_gie(!BIT(g, 0));
else if (BIT(g, 0))
set_gie(BIT(m_as[m_asp], 22));
@@ -1487,7 +1487,7 @@ dp8344_device::inst_state dp8344_device::decode_instruction()
m_ba = BIT(m_latched_instr, 4);
m_bb = BIT(m_latched_instr, 3);
if (BIT(m_latched_instr, 6))
- set_gie(BIT(m_latched_instr, 5));
+ set_gie(!BIT(m_latched_instr, 5));
instruction_wait();
return T2_NEXT;
}