From 4ebd447e8900a44ddbefc2e1478bfaf4a2e87e95 Mon Sep 17 00:00:00 2001 From: TomW Date: Fri, 13 Feb 2015 21:06:54 +0000 Subject: [PATCH] Fixed carry flag in DAA/DAS. --- src/x86_ops_bcd.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/x86_ops_bcd.h b/src/x86_ops_bcd.h index 1ef7210..3cef2dc 100644 --- a/src/x86_ops_bcd.h +++ b/src/x86_ops_bcd.h @@ -72,6 +72,7 @@ static int opDAA(uint32_t fetchdat) tempw = flags & (C_FLAG | A_FLAG); setznp8(AL); + flags_rebuild(); flags |= tempw; CLOCK_CYCLES(4); @@ -98,6 +99,7 @@ static int opDAS(uint32_t fetchdat) tempw = flags & (C_FLAG | A_FLAG); setznp8(AL); + flags_rebuild(); flags |= tempw; CLOCK_CYCLES(4);