From 6f3eab751455fea80250d3008b1e7a36ca5fabb4 Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 25 Jun 2024 15:34:37 -0400 Subject: f2mc16: Fix copy-paste mistakes --- src/devices/cpu/f2mc16/f2mc16.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/cpu/f2mc16/f2mc16.cpp b/src/devices/cpu/f2mc16/f2mc16.cpp index 64ee5822c8b..e01b02e24e8 100644 --- a/src/devices/cpu/f2mc16/f2mc16.cpp +++ b/src/devices/cpu/f2mc16/f2mc16.cpp @@ -5028,7 +5028,7 @@ void f2mc16_device::opcodes_ea77(u8 operand) m_tmp16 = read_rwX(operand & 3); m_tmpea = getRWbank(operand & 3, m_tmp16); m_tmp16 = read_16(m_tmpea); - m_tmp16 &= (m_acc & 0xffff); + m_tmp16 |= (m_acc & 0xffff); write_16(m_tmpea, m_tmp16); setNZ_16(m_tmp16); m_ps &= ~F_V; @@ -5052,7 +5052,7 @@ void f2mc16_device::opcodes_ea77(u8 operand) m_tmp16 = read_rwX(operand & 3); m_tmpea = getRWbank(operand & 3, m_tmp16); m_tmp16 = read_16(m_tmpea); - m_tmp16 &= (m_acc & 0xffff); + m_tmp16 ^= (m_acc & 0xffff); write_16(m_tmpea, m_tmp16); setNZ_16(m_tmp16); m_ps &= ~F_V; -- cgit v1.2.3