[FAST486]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Sun, 19 Apr 2015 22:34:12 +0000 (22:34 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Sun, 19 Apr 2015 22:34:12 +0000 (22:34 +0000)
Clear the CF and OF flags in AND, OR and XOR.

svn path=/trunk/; revision=67315

reactos/lib/fast486/opgroups.c

index d4217ee..60e778d 100644 (file)
@@ -70,6 +70,7 @@ Fast486ArithmeticOperation(PFAST486_STATE State,
         case 1:
         {
             Result = FirstValue | SecondValue;
+            State->Flags.Cf = State->Flags.Of = FALSE;
             break;
         }
 
@@ -112,6 +113,7 @@ Fast486ArithmeticOperation(PFAST486_STATE State,
         case 4:
         {
             Result = FirstValue & SecondValue;
+            State->Flags.Cf = State->Flags.Of = FALSE;
             break;
         }
 
@@ -134,6 +136,7 @@ Fast486ArithmeticOperation(PFAST486_STATE State,
         case 6:
         {
             Result = FirstValue ^ SecondValue;
+            State->Flags.Cf = State->Flags.Of = FALSE;
             break;
         }