Attempt at fixing #126.

This commit is contained in:
Christian Kamm
2008-11-27 18:31:09 +01:00
parent 18e51d1c3f
commit cc6bde46f9
2 changed files with 2 additions and 2 deletions

View File

@@ -1926,7 +1926,7 @@ struct AsmProcessor
}
if (use_star)
insnTemplate->writebyte('*');
if (operand->constDisplacement) {
if (operand->segmentPrefix != Reg_Invalid || operand->constDisplacement) {
if (operand->symbolDisplacement.dim)
insnTemplate->writebyte('+');
//addOperand(fmt, Arg_Integer, newIntExp(operand->constDisplacement), asmcode);

View File

@@ -2047,7 +2047,7 @@ struct AsmProcessor
}
if (use_star)
insnTemplate->writebyte('*');
if (operand->constDisplacement) {
if (operand->segmentPrefix != Reg_Invalid || operand->constDisplacement) {
if (operand->symbolDisplacement.dim)
insnTemplate->writebyte('+');
//addOperand(fmt, Arg_Integer, newIntExp(operand->constDisplacement), asmcode);