NOT shouldn't set flags

This commit is contained in:
Luke Usher 2018-09-19 20:16:53 +01:00
parent 338879ba96
commit dc452eb415
1 changed files with 1 additions and 7 deletions

View File

@ -968,13 +968,7 @@ bool EmuX86_Opcode_NOT(LPEXCEPTION_POINTERS e, _DInst& info)
// Write back the result // Write back the result
EmuX86_Addr_Write(opAddr, 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. // Flags are not effected
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);
return true; return true;
} }