Skip to content

Commit

Permalink
Better check
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukem9 committed Mar 30, 2015
1 parent 29f48ba commit c597da4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Validator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ bool ValidateInstOperands(XEDPARSE* Parse, Inst* Instruction)
if(Instruction->Class == XED_ICLASS_OUT)
{
// Example: OUT 0xE9, EAX
return true;
if(Instruction->Operands[1].Type == OPERAND_REG)
return true;
}

strcpy(Parse->error, "Operand immediate mismatch");
Expand Down

0 comments on commit c597da4

Please sign in to comment.