OpcodeDispatcher: optimize clc/stc

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig 2024-08-09 15:52:30 -04:00
parent 79c745929a
commit 34ee3bb8aa

View File

@ -1255,10 +1255,10 @@ void OpDispatchBuilder::FLAGControlOp(OpcodeArgs) {
CarryInvert();
break;
case 0xF8: // CLC
SetCFDirect(_Constant(0));
SetCFInverted(_Constant(1));
break;
case 0xF9: // STC
SetCFDirect(_Constant(1));
SetCFInverted(_Constant(0));
break;
case 0xFC: // CLD
SetRFLAG(_Constant(0), FEXCore::X86State::RFLAG_DF_RAW_LOC);