From 7abd4d9b38654b2cf8883df08b6570add3f75aff Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 10 Nov 2023 22:47:50 -0500 Subject: [PATCH] Fix AAA/AAS carry outcome. --- InstructionSets/x86/Implementation/BCD.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/InstructionSets/x86/Implementation/BCD.hpp b/InstructionSets/x86/Implementation/BCD.hpp index 26fd87056..2e6d77388 100644 --- a/InstructionSets/x86/Implementation/BCD.hpp +++ b/InstructionSets/x86/Implementation/BCD.hpp @@ -30,6 +30,8 @@ void aaas( --ax.halves.high; } context.flags.template set_from(1); + } else { + context.flags.template set_from(0); } ax.halves.low &= 0x0f; }