Added alderwicks fix

This commit is contained in:
neauoire 2021-03-21 10:42:50 -07:00
parent f4423ad629
commit 1fa0c5b686
1 changed files with 4 additions and 2 deletions

View File

@ -349,8 +349,10 @@ pass1(FILE *f)
if(skipblock(w, &cbits, '[', ']')) { if(skipblock(w, &cbits, '[', ']')) {
if(w[0] == '[' || w[0] == ']') if(w[0] == '[' || w[0] == ']')
continue; continue;
if(sihx(w)) if(slen(w) == 4 && sihx(w))
addr += slen(w) == 4 ? 2 : 1; addr += 2;
else if(slen(w) == 2 && sihx(w))
addr += 1;
else else
addr += slen(w); addr += slen(w);
} else if(w[0] == '%') { } else if(w[0] == '%') {