From b50b75f1a05cf59635121eba144b925fa00ba2c8 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Fri, 17 Mar 2023 21:52:52 +0100 Subject: [PATCH] according to FKTCA0.BIC, MFPI should not set c and set v to 0 --- cpu.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpu.cpp b/cpu.cpp index d4e8605..0ee890a 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -1323,10 +1323,9 @@ bool cpu::single_operand_instructions(const uint16_t instr) } if (set_flags) { - setPSW_c(true); setPSW_z(v == 0); setPSW_n(SIGN(v, false)); - // deze niet? setPSW_v(false); + setPSW_v(false); } // put on current stack