uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit c324881b90fd618fb55bcd0ea278f5c732ef3fe7
parent 169c4b1402ee124b262e69f316bd1403c05e5f3e
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Wed, 18 Aug 2021 07:45:51 +0100

Minor optimisation to uxnasm

Diffstat:
Msrc/uxnasm.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 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 */