MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / FLAGControlOp

Method FLAGControlOp

FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp:1198–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1196}
1197
1198void OpDispatchBuilder::FLAGControlOp(OpcodeArgs) {
1199 // Calculate flags early.
1200 CalculateDeferredFlags();
1201
1202 switch (Op->OP) {
1203 case 0xF5: // CMC
1204 CarryInvert();
1205 break;
1206 case 0xF8: // CLC
1207 SetCFInverted(Constant(1));
1208 break;
1209 case 0xF9: // STC
1210 SetCFInverted(Constant(0));
1211 break;
1212 case 0xFC: // CLD
1213 // Transformed
1214 StoreDF(Constant(1));
1215 break;
1216 case 0xFD: // STD
1217 StoreDF(Constant(-1));
1218 break;
1219 }
1220}
1221
1222
1223void OpDispatchBuilder::MOVSegOp(OpcodeArgs, bool ToSeg) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected