Logic error fix

This commit is contained in:
Kelly Wilson
2009-03-11 13:54:29 -04:00
parent e5a4e4cb41
commit 6e44efb9d2
2 changed files with 2 additions and 2 deletions

View File

@@ -2188,7 +2188,7 @@ namespace AsmParserx8632
}
if ( use_star )
insnTemplate->writebyte ( '*' );
if ( operand->segmentPrefix != Reg_Invalid || !(operand->constDisplacement) )
if ( operand->segmentPrefix != Reg_Invalid && !(operand->constDisplacement) )
{
insnTemplate->printf ( "%d", operand->constDisplacement );
if ( opInfo->operands[i] & Opr_Dest )

View File

@@ -2310,7 +2310,7 @@ namespace AsmParserx8664
}
if ( use_star )
insnTemplate->writebyte ( '*' );
if ( operand->segmentPrefix != Reg_Invalid || !(operand->constDisplacement))
if ( operand->segmentPrefix != Reg_Invalid && !(operand->constDisplacement))
{
insnTemplate->printf ( "%d", operand->constDisplacement );
if ( opInfo->operands[i] & Opr_Dest )