[FAST486]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Fri, 21 Feb 2014 01:15:03 +0000 (01:15 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Fri, 21 Feb 2014 01:15:03 +0000 (01:15 +0000)
Update the AC flag in the POPF instruction.

svn path=/branches/ntvdm/; revision=62278

include/reactos/libs/fast486/fast486.h
lib/fast486/opcodes.c

index c660a25..339ecb6 100644 (file)
@@ -378,8 +378,9 @@ typedef union _FAST486_FLAGS_REG
         ULONG Reserved2 : 1;
         ULONG Rf        : 1;
         ULONG Vm        : 1;
+        ULONG Ac        : 1;
 
-        // ULONG Reserved : 14;
+        // ULONG Reserved : 13;
     };
 } FAST486_FLAGS_REG, *PFAST486_FLAGS_REG;
 
index b191e6e..0c4f3d8 100644 (file)
@@ -4284,6 +4284,7 @@ FAST486_OPCODE_HANDLER(Fast486OpcodePopFlags)
     State->Flags.Df = NewFlags.Df;
     State->Flags.Of = NewFlags.Of;
     State->Flags.Nt = NewFlags.Nt;
+    State->Flags.Ac = NewFlags.Ac;
 
     if (Cpl == 0) State->Flags.Iopl = NewFlags.Iopl;
     if (Cpl <= State->Flags.Iopl) State->Flags.If = NewFlags.If;