]> git.sur5r.net Git - cc65/commitdiff
Better debug output
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 31 Dec 2003 09:55:18 +0000 (09:55 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 31 Dec 2003 09:55:18 +0000 (09:55 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2863 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/common/exprdefs.c

index 78b686360721b0ab7af0b368e8073780c93605f4..9c959f32e6fec067a2473947995756d5a618b9f9 100644 (file)
@@ -59,17 +59,15 @@ static void InternalDumpExpr (const ExprNode* Expr, const ExprNode* (*ResolveSym
 
        case EXPR_LITERAL:
        case EXPR_ULABEL:
-           printf (" $%04lX", Expr->V.Val & 0xFFFF);
+                   printf (" $%04lX", Expr->V.Val);
            break;
 
        case EXPR_SYMBOL:
+            printf (" SYM(");
             if (ResolveSym && (Expr = ResolveSym (Expr->V.Sym)) != 0) {
-                       printf (" SYM (");
                 InternalDumpExpr (Expr, ResolveSym);
-                printf (") ");
-            } else {
-                printf ("SYM ");
             }
+            printf (") ");
            break;
 
        case EXPR_SECTION: