Minor optimisation to uxnasm

This commit is contained in:
Andrew Alderwick 2021-08-18 07:45:51 +01:00
parent 169c4b1402
commit c324881b90
1 changed files with 1 additions and 4 deletions

View File

@ -247,10 +247,7 @@ parsetoken(char *w)
} else if(w[0] == ';' && (l = findlabel(w + 1))) { /* absolute */ } else if(w[0] == ';' && (l = findlabel(w + 1))) { /* absolute */
pushshort(l->addr, 1); pushshort(l->addr, 1);
return ++l->refs; return ++l->refs;
} else if(scmp(w, "BRK", 4)) { /* special BRK opcode */ } else if(findopcode(w) || scmp(w, "BRK", 4)) { /* opcode */
pushbyte(0, 0);
return 1;
} else if(findopcode(w)) { /* opcode */
pushbyte(findopcode(w), 0); pushbyte(findopcode(w), 0);
return 1; return 1;
} else if(w[0] == '"') { /* string */ } else if(w[0] == '"') { /* string */