commit 24319c55e90f1e4c8abbafa3037cc968cd3fed87
parent aedc593434d9a06131fe53c7f89fcf4db9b72291
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date: Wed, 27 Mar 2024 15:59:03 -0700
(uxnasm) Housekeeping
Diffstat:
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/src/uxnasm.c b/src/uxnasm.c
@@ -321,17 +321,16 @@ parse(char *w, FILE *f, Context *ctx)
case '$':
case '|': return !makepad(w) ? error_asm("Invalid padding") : 1;
case '[':
- case ']': break;
- default:
- if(sihx(w))
- return writehex(w, ctx);
- else if(isopcode(w))
- return writebyte(findopcode(w), ctx);
- else if((m = findmacro(w)))
- return walkmacro(m, ctx);
- else
- return addref(w, ' ', ptr + 1) && writebyte(0x60, ctx) && writeshort(0xffff);
+ case ']': return 1;
}
+ if(sihx(w))
+ return writehex(w, ctx);
+ else if(isopcode(w))
+ return writebyte(findopcode(w), ctx);
+ else if((m = findmacro(w)))
+ return walkmacro(m, ctx);
+ else
+ return addref(w, ' ', ptr + 1) && writebyte(0x60, ctx) && writeshort(0xffff);
return 1;
}