From 003e5b48790dc0b3cb687734131ae66be34f7dcd Mon Sep 17 00:00:00 2001 From: hap Date: Tue, 13 Dec 2022 19:55:24 +0100 Subject: m6809/konami: fix carry flag on LSRD, ASRD --- src/devices/cpu/m6809/konami.ops | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/cpu/m6809/konami.ops b/src/devices/cpu/m6809/konami.ops index 88de8e463bf..83071d022f8 100644 --- a/src/devices/cpu/m6809/konami.ops +++ b/src/devices/cpu/m6809/konami.ops @@ -517,7 +517,7 @@ LSRD: if (m_temp.b.l != 0x00) { // set C condition code - if (m_q.r.d & safe_shift_left(1, m_temp.b.l)) + if (m_q.r.d & safe_shift_left(1, m_temp.b.l - 1)) m_cc |= CC_C; else m_cc &= ~CC_C; @@ -547,7 +547,7 @@ ASRD: if (m_temp.b.l != 0x00) { // set C condition code - if (m_q.r.d & safe_shift_left(1, m_temp.b.l)) + if (m_q.r.d & safe_shift_left(1, m_temp.b.l - 1)) m_cc |= CC_C; else m_cc &= ~CC_C; -- cgit v1.2.3