From 710cf2bbadb20cddbc0cef7a75d18c214e6c5ce9 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sun, 12 Jun 2022 22:00:45 +0200 Subject: [PATCH] SBC for registers fix --- cpu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpu.cpp b/cpu.cpp index b34cdb7..719d542 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -1053,6 +1053,8 @@ bool cpu::single_operand_instructions(const uint16_t instr) if (IS_0(vo, word_mode) && org_c) setPSW_c(true); + + setRegister(dst_reg, false, v); } else { uint16_t a = getGAMAddress(dst_mode, dst_reg, word_mode, false);