From e9b8b6f597523d58d9800eae3c4df80ec1bf29ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 22 Nov 2014 16:23:59 +0000 Subject: [PATCH] [FAST486]: Fix a comment and use the TOGGLE_OPSIZE macro. svn path=/trunk/; revision=65446 --- reactos/lib/fast486/common.inl | 2 +- reactos/lib/fast486/opcodes.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/fast486/common.inl b/reactos/lib/fast486/common.inl index ed811fff573..6385e62694d 100644 --- a/reactos/lib/fast486/common.inl +++ b/reactos/lib/fast486/common.inl @@ -303,7 +303,7 @@ Fast486StackPush(PFAST486_STATE State, BOOLEAN Size = State->SegmentRegs[FAST486_REG_CS].Size; /* The OPSIZE prefix toggles the size */ - if (State->PrefixFlags & FAST486_PREFIX_OPSIZE) Size = !Size; + TOGGLE_OPSIZE(Size); if (Size) { diff --git a/reactos/lib/fast486/opcodes.c b/reactos/lib/fast486/opcodes.c index e8a6a25040e..238f2b50e73 100644 --- a/reactos/lib/fast486/opcodes.c +++ b/reactos/lib/fast486/opcodes.c @@ -4679,7 +4679,7 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeIret) /* Return to VM86 mode */ ULONG Es, Ds, Fs, Gs; - /* Pop ESP, SS, ES, FS, GS */ + /* Pop ESP, SS, ES, DS, FS, GS */ if (!Fast486StackPop(State, &StackPtr)) return; if (!Fast486StackPop(State, &StackSel)) return; if (!Fast486StackPop(State, &Es)) return;