diff gen/asm-x86-64.h @ 793:f6dd817060fc

Attempt at fixing #126.
author Christian Kamm <kamm incasoftware de>
date Thu, 27 Nov 2008 18:31:09 +0100
parents a58784e0f035
children e70a0e7e2260
line wrap: on
line diff
--- a/gen/asm-x86-64.h	Thu Nov 27 17:43:20 2008 +0100
+++ b/gen/asm-x86-64.h	Thu Nov 27 18:31:09 2008 +0100
@@ -2047,7 +2047,7 @@
 		}
 		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);