From dc452eb41549de6925c2c7fea7ac4c1820771b13 Mon Sep 17 00:00:00 2001 From: Luke Usher Date: Wed, 19 Sep 2018 20:16:53 +0100 Subject: [PATCH] NOT shouldn't set flags --- src/CxbxKrnl/EmuX86.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/CxbxKrnl/EmuX86.cpp b/src/CxbxKrnl/EmuX86.cpp index b9ce7f868..27febe41b 100644 --- a/src/CxbxKrnl/EmuX86.cpp +++ b/src/CxbxKrnl/EmuX86.cpp @@ -968,13 +968,7 @@ bool EmuX86_Opcode_NOT(LPEXCEPTION_POINTERS e, _DInst& info) // Write back the result EmuX86_Addr_Write(opAddr, result); - // The OF and CF flags are cleared; the SF, ZF, and PF flags are set according to the result. The state of the AF flag is undefined. - EmuX86_SetFlags_OSZPC(e, - /*EMUX86_EFLAG_OF*/0, - /*EMUX86_EFLAG_SF*/SFCalc(result), - /*EMUX86_EFLAG_ZF*/ZFCalc(result), - /*EMUX86_EFLAG_PF*/PFCalc(result), - /*EMUX86_EFLAG_CF*/0); + // Flags are not effected return true; }