(uxnasm) Catch missized #hex
This commit is contained in:
parent
68d6a5f604
commit
e47a14f673
|
@ -258,9 +258,9 @@ writehex(char *w, Context *ctx)
|
||||||
{
|
{
|
||||||
if(*w == '#')
|
if(*w == '#')
|
||||||
writebyte(findopcode("LIT") | !!(++w)[2] << 5, ctx);
|
writebyte(findopcode("LIT") | !!(++w)[2] << 5, ctx);
|
||||||
if(!w[2])
|
if(w[1] && !w[2])
|
||||||
return writebyte(shex(w), ctx);
|
return writebyte(shex(w), ctx);
|
||||||
else if(!w[4])
|
else if(w[3] && !w[4])
|
||||||
return writeshort(shex(w));
|
return writeshort(shex(w));
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue