mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-16 11:15:06 +00:00
(uxnasm) Housekeeping
This commit is contained in:
parent
632f9fc0fa
commit
652bff0a93
1 changed files with 2 additions and 4 deletions
|
@ -344,27 +344,25 @@ resolveref(Item *r)
|
|||
*rom = (Sint8)(l->addr - r->addr - 2);
|
||||
if((Sint8)data[r->addr] != (l->addr - r->addr - 2))
|
||||
return error_top("Relative reference is too far", r->name);
|
||||
l->refs++;
|
||||
break;
|
||||
case '-':
|
||||
case '.':
|
||||
*rom = l->addr;
|
||||
l->refs++;
|
||||
break;
|
||||
case ':':
|
||||
case '=':
|
||||
case ';':
|
||||
*rom++ = l->addr >> 8, *rom = l->addr;
|
||||
l->refs++;
|
||||
break;
|
||||
case '?':
|
||||
case '!':
|
||||
default:
|
||||
a = l->addr - r->addr - 2;
|
||||
*rom++ = a >> 8, *rom = a;
|
||||
l->refs++;
|
||||
break;
|
||||
}
|
||||
l->refs++;
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in a new issue