commit 03caf9317b3230e2c81b51c49751e26eb1cd250f
parent af87818228d79b3ae9aea633a7289aabacc326f0
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date: Wed, 27 Mar 2024 13:18:42 -0700
(uxnasm) Stop assembling on error
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/etc/hello.tal b/etc/hello.tal
@@ -1,6 +1,6 @@
( init )
-%emit ( byte -- ) { ( macro comment ) #18 DEO }
+%emit ( byte -- ) { #18 DEO }
|0100 @program
@@ -23,4 +23,4 @@ BRK
@program/extend BRK
-@hello-word "Hello 20 "World! 00
+@hello-word "Hello 20 "World? 00
diff --git a/src/uxnasm.c b/src/uxnasm.c
@@ -54,8 +54,8 @@ static char *push(char *s, char c) { char *o = dictnext; while((*dictnext++ = *s
#define makesublabel(x) push(scat(scat(scpy(scope, sublabel, 0x40), "/"), x), 0)
#define findlabel(x) finditem(x, labels, label_len)
#define findmacro(x) finditem(x, macros, macro_len)
-#define error_top(name, msg) !!fprintf(stderr, "%s: %s\n", name, msg)
-#define error_asm(name) !!fprintf(stderr, "%s: %s in @%s, %s:%d.\n", name, token, scope, source, ln)
+#define error_top(name, msg) !fprintf(stderr, "%s: %s\n", name, msg)
+#define error_asm(name) !fprintf(stderr, "%s: %s in @%s, %s:%d.\n", name, token, scope, source, ln)
/* clang-format on */