[FAST486]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Mon, 11 Nov 2013 03:16:07 +0000 (03:16 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Mon, 11 Nov 2013 03:16:07 +0000 (03:16 +0000)
Fix a bug in the LDS and LES instructions.

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

lib/fast486/opcodes.c

index 500b8c7..07e870c 100644 (file)
@@ -4314,6 +4314,7 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeLdsLes)
 
     OperandSize = AddressSize = State->SegmentRegs[FAST486_REG_CS].Size;
 
 
     OperandSize = AddressSize = State->SegmentRegs[FAST486_REG_CS].Size;
 
+    TOGGLE_OPSIZE(OperandSize);
     TOGGLE_ADSIZE(AddressSize);
 
     /* Get the operands */
     TOGGLE_ADSIZE(AddressSize);
 
     /* Get the operands */