From 6c0e39ad6f7984803ee8e5336e5a1b5329afe66c Mon Sep 17 00:00:00 2001 From: neauoire Date: Sat, 27 Nov 2021 14:58:37 -0800 Subject: [PATCH] (uxnasm) Fixed issue with labels --- src/uxnasm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uxnasm.c b/src/uxnasm.c index 1268b53..3134ff1 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -264,10 +264,12 @@ tokenize(char *w, FILE *f) if(!makelabel(w + 1)) return error("Invalid label", w); scpy(w + 1, p.scope, 64); + litlast = 0; break; case '&': /* sublabel */ if(!makelabel(sublabel(subw, p.scope, w + 1))) return error("Invalid sublabel", w); + litlast = 0; break; case '#': /* literals hex */ if(!sihx(w + 1) || (slen(w) != 3 && slen(w) != 5))