From 382253dea4f531a7eed12533c001327bf205d8a0 Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 1 Dec 2019 18:24:38 -0500 Subject: dp8344: Fix EI and DI for EXX and RET instructions (nw) --- src/devices/cpu/bcp/dp8344.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/devices') 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; } -- cgit v1.2.3