[SOFT386]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Sun, 29 Sep 2013 23:45:06 +0000 (23:45 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Sun, 29 Sep 2013 23:45:06 +0000 (23:45 +0000)
Fetching the immediate operand once is sufficient.

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

lib/soft386/opgroups.c

index e75fa8b..f152722 100644 (file)
@@ -464,13 +464,6 @@ SOFT386_OPCODE_HANDLER(Soft386OpcodeGroup83)
         USHORT Immediate = (USHORT)((SHORT)ImmByte); // Sign extend
         USHORT Value, Dummy;
 
-        /* Fetch the immediate operand */
-        if (!Soft386FetchWord(State, &Immediate))
-        {
-            /* Exception occurred */
-            return FALSE;
-        }
-
         /* Read the operands */
         if (!Soft386ReadModrmWordOperands(State, &ModRegRm, &Dummy, &Value))
         {