From 3fde04e1d2e0fba7a81718f3a7695d19920291b9 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 3 Nov 2023 21:22:02 +0000 Subject: Fixed bug where labels were off by one Was used in a previous fix but not necessary anymore --- asm/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'asm/parser.c') diff --git a/asm/parser.c b/asm/parser.c index 4eff0a5..4667eaf 100644 --- a/asm/parser.c +++ b/asm/parser.c @@ -524,7 +524,7 @@ perr_t process_presults(presult_t *results, size_t res_count, case PRES_LABEL: { label_t label = {.name = res.label, .name_size = strlen(res.label), - .addr = inst_count + 1}; + .addr = inst_count}; darr_append_bytes(&label_registry, (byte *)&label, sizeof(label)); break; } -- cgit v1.2.3-13-gbd6f