Merge pull request #1442 from LukeUsher/not-shouldnt-set-flags

NOT shouldn't set flags
This commit is contained in:
Luke Usher 2018-09-19 20:21:29 +01:00 committed by GitHub
commit d053f9c827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
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;
}