Browse code

Minor optimisation to uxnasm

Andrew Alderwick authored on 18/08/2021 06:45:51
Showing 1 changed files
... ...
@@ -247,10 +247,7 @@ parsetoken(char *w)
247 247
 	} else if(w[0] == ';' && (l = findlabel(w + 1))) { /* absolute */
248 248
 		pushshort(l->addr, 1);
249 249
 		return ++l->refs;
250
-	} else if(scmp(w, "BRK", 4)) { /* special BRK opcode */
251
-		pushbyte(0, 0);
252
-		return 1;
253
-	} else if(findopcode(w)) { /* opcode */
250
+	} else if(findopcode(w) || scmp(w, "BRK", 4)) { /* opcode */
254 251
 		pushbyte(findopcode(w), 0);
255 252
 		return 1;
256 253
 	} else if(w[0] == '"') { /* string */