From c324881b90fd618fb55bcd0ea278f5c732ef3fe7 Mon Sep 17 00:00:00 2001 From: Andrew Alderwick Date: Wed, 18 Aug 2021 07:45:51 +0100 Subject: [PATCH] Minor optimisation to uxnasm --- src/uxnasm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/uxnasm.c b/src/uxnasm.c index 6cc075a..1520bf7 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -247,10 +247,7 @@ parsetoken(char *w) } else if(w[0] == ';' && (l = findlabel(w + 1))) { /* absolute */ pushshort(l->addr, 1); return ++l->refs; - } else if(scmp(w, "BRK", 4)) { /* special BRK opcode */ - pushbyte(0, 0); - return 1; - } else if(findopcode(w)) { /* opcode */ + } else if(findopcode(w) || scmp(w, "BRK", 4)) { /* opcode */ pushbyte(findopcode(w), 0); return 1; } else if(w[0] == '"') { /* string */