commit 4f846be
Devine Lu Linvega
·
2024-05-10 15:15:53 +0000 UTC
parent f590734
Fixed issue with comments in macros, fixed by jjbliss
1 files changed,
+4,
-4
+4,
-4
1@@ -184,9 +184,9 @@ makemacro(char *name, FILE *f, Context *ctx)
2 if(c == '%') return error_asm("Macro nested");
3 if(c == '{') depth++;
4 if(c == '}' && --depth) break;
5- if(c == '(' && !walkcomment(f, ctx))
6- return 0;
7- else
8+ if(c == '(') {
9+ if(!walkcomment(f, ctx)) return 0;
10+ } else
11 *dictnext++ = c;
12 }
13 *dictnext++ = 0;
14@@ -409,7 +409,7 @@ main(int argc, char *argv[])
15 {
16 ptr = PAGE;
17 copy("on-reset", scope, 0);
18- if(argc == 2 && scmp(argv[1], "-v", 2)) return !printf("Uxnasm - Uxntal Assembler, 13 Apr 2024.\n");
19+ if(argc == 2 && scmp(argv[1], "-v", 2)) return !printf("Uxnasm - Uxntal Assembler, 10 May 2024.\n");
20 if(argc != 3) return error_top("usage", "uxnasm [-v] input.tal output.rom");
21 if(!assemble(argv[1])) return 1;
22 if(!resolve(argv[2])) return 1;