(uxnasm) Fixed issue with labels
This commit is contained in:
parent
b4e50165b6
commit
6c0e39ad6f
|
@ -264,10 +264,12 @@ tokenize(char *w, FILE *f)
|
||||||
if(!makelabel(w + 1))
|
if(!makelabel(w + 1))
|
||||||
return error("Invalid label", w);
|
return error("Invalid label", w);
|
||||||
scpy(w + 1, p.scope, 64);
|
scpy(w + 1, p.scope, 64);
|
||||||
|
litlast = 0;
|
||||||
break;
|
break;
|
||||||
case '&': /* sublabel */
|
case '&': /* sublabel */
|
||||||
if(!makelabel(sublabel(subw, p.scope, w + 1)))
|
if(!makelabel(sublabel(subw, p.scope, w + 1)))
|
||||||
return error("Invalid sublabel", w);
|
return error("Invalid sublabel", w);
|
||||||
|
litlast = 0;
|
||||||
break;
|
break;
|
||||||
case '#': /* literals hex */
|
case '#': /* literals hex */
|
||||||
if(!sihx(w + 1) || (slen(w) != 3 && slen(w) != 5))
|
if(!sihx(w + 1) || (slen(w) != 3 && slen(w) != 5))
|
||||||
|
|
Loading…
Reference in New Issue