commit 3fda89b

Devine Lu Linvega  ·  2024-03-29 17:42:58 +0000 UTC
parent da54634
(uxnasm) Catch missized #hex
1 files changed,  +2, -2
+2, -2
 1@@ -258,9 +258,9 @@ writehex(char *w, Context *ctx)
 2 {
 3 	if(*w == '#')
 4 		writebyte(findopcode("LIT") | !!(++w)[2] << 5, ctx);
 5-	if(!w[2])
 6+	if(w[1] && !w[2])
 7 		return writebyte(shex(w), ctx);
 8-	else if(!w[4])
 9+	else if(w[3] && !w[4])
10 		return writeshort(shex(w));
11 	else
12 		return 0;