commit 2f6992e581ba599c2bcd14a04013b335269a542a
parent 4c2dee977b6510bea2600763a794b60c798e0d25
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 16 Mar 2015 06:59:27 +0000
Fix bug in output of AUTO variables
Some times variables in stack are positive, but other time they are
negative, so we don't have to force a sign in the fmt but put the
format modifier to force printf to put always the correct sign.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cc2/code.c b/cc2/code.c
@@ -142,7 +142,7 @@ addr2txt(Addr *a)
break;
case PAR:
case AUTO:
- printf("(IX+%d)", a->u.i);
+ printf("(IX%+d)", a->u.i);
break;
case INDEX:
fputs("(HL)", stdout);