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(w[0] == '[' || w[0] == ']')
continue;
if(sihx(w))
addr += slen(w) == 4 ? 2 : 1;
if(slen(w) == 4 && sihx(w))
addr += 2;
else if(slen(w) == 2 && sihx(w))
addr += 1;
else
addr += slen(w);
} else if(w[0] == '%') {