[SOFT386]

The immediate operand should be fetched before attempting to read the
MOD-REG-R/M byte operands.


svn path=/branches/ntvdm/; revision=60460
This commit is contained in:
Aleksandar Andrejevic
2013-09-29 22:24:46 +00:00
parent 6605a6f215
commit fce8b3f276
+4 -4
View File
@@ -384,15 +384,15 @@ SOFT386_OPCODE_HANDLER(Soft386OpcodeGroupC0)
return FALSE;
}
/* Read the operands */
if (!Soft386ReadModrmByteOperands(State, &ModRegRm, &Dummy, &Value))
/* Fetch the count */
if (!Soft386FetchByte(State, &Count))
{
/* Exception occurred */
return FALSE;
}
/* Fetch the count */
if (!Soft386FetchByte(State, &Count))
/* Read the operands */
if (!Soft386ReadModrmByteOperands(State, &ModRegRm, &Dummy, &Value))
{
/* Exception occurred */
return FALSE;