mirror of
https://git.sr.ht/~rabbits/uxn
synced 2025-01-03 14:11:11 +00:00
Minor optimisation to uxnasm
This commit is contained in:
parent
169c4b1402
commit
c324881b90
1 changed files with 1 additions and 4 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue