From 652bff0a9324fe46e8b7e8905b54dab87a8f6eb5 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Wed, 27 Mar 2024 16:48:56 -0700 Subject: [PATCH] (uxnasm) Housekeeping --- src/uxnasm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/uxnasm.c b/src/uxnasm.c index 5ed195e..1283769 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -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