mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-23 09:00:39 +02:00
OpcodeDispatcher: transform DF ourselves
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
1 parent
ad7844d7da
commit
bf3a1839a2
1 file changed
+3
-2
@@ -1146,10 +1146,11 @@ void OpDispatchBuilder::FLAGControlOp(OpcodeArgs) {
|
||||
SetCFInverted(_Constant(0));
|
||||
break;
|
||||
case 0xFC: // CLD
|
||||
SetRFLAG(_Constant(0), FEXCore::X86State::RFLAG_DF_RAW_LOC);
|
||||
// Transformed
|
||||
StoreDF(_Constant(1));
|
||||
break;
|
||||
case 0xFD: // STD
|
||||
SetRFLAG(_Constant(1), FEXCore::X86State::RFLAG_DF_RAW_LOC);
|
||||
StoreDF(_Constant(-1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user