Fixed error reports in assembler

This commit is contained in:
neauoire 2021-06-08 08:20:00 -07:00
parent 7b3d3505b5
commit 54ece814de
1 changed files with 2 additions and 2 deletions

View File

@ -275,7 +275,7 @@ parsetoken(char *w)
else if(slen(w) == 4)
pushshort(shex(w), 0);
else
return error("Hex value length is invalid", w);
return error("Invalid hexadecimal value", w);
return 1;
} else if((m = findmacro(w))) {
int i;
@ -309,7 +309,7 @@ pass1(FILE *f)
scpy(w + 1, scope, 64);
} else if(w[0] == '&') {
if(!makelabel(sublabel(subw, scope, w + 1), addr))
return error("Ivalid sublabel", w);
return error("Invalid sublabel", w);
} else if(sihx(w))
addr += slen(w) / 2;
else