Author: aandrejevic Date: Fri Feb 21 01:15:03 2014 New Revision: 62278
URL: http://svn.reactos.org/svn/reactos?rev=62278&view=rev Log: [FAST486] Update the AC flag in the POPF instruction.
Modified: branches/ntvdm/include/reactos/libs/fast486/fast486.h branches/ntvdm/lib/fast486/opcodes.c
Modified: branches/ntvdm/include/reactos/libs/fast486/fast486.h URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/include/reactos/libs/fast4... ============================================================================== --- branches/ntvdm/include/reactos/libs/fast486/fast486.h [iso-8859-1] (original) +++ branches/ntvdm/include/reactos/libs/fast486/fast486.h [iso-8859-1] Fri Feb 21 01:15:03 2014 @@ -378,8 +378,9 @@ ULONG Reserved2 : 1; ULONG Rf : 1; ULONG Vm : 1; - - // ULONG Reserved : 14; + ULONG Ac : 1; + + // ULONG Reserved : 13; }; } FAST486_FLAGS_REG, *PFAST486_FLAGS_REG;
Modified: branches/ntvdm/lib/fast486/opcodes.c URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/lib/fast486/opcodes.c?rev=... ============================================================================== --- branches/ntvdm/lib/fast486/opcodes.c [iso-8859-1] (original) +++ branches/ntvdm/lib/fast486/opcodes.c [iso-8859-1] Fri Feb 21 01:15:03 2014 @@ -4284,6 +4284,7 @@ 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;