uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 8d092bf1bc080c8b434d4e1528d79395d8c8a2d7
parent 78c428d215655d6b2f787a6f76b3d17a293c252b
Author: neauoire <aliceffekt@gmail.com>
Date:   Thu, 17 Jun 2021 20:53:27 -0700

Give ids to labels and macros

Diffstat:
Msrc/uxnasm.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/uxnasm.c b/src/uxnasm.c @@ -167,7 +167,7 @@ makemacro(char *name, FILE *f) return error("Word too long", name); scpy(word, m->items[m->len++], 64); } - printf("New macro: %s, %d items\n", m->name, m->len); + printf("New macro #%d: %s, %d items\n", p.mlen, m->name, m->len); return 1; } @@ -185,7 +185,7 @@ makelabel(char *name, Uint16 addr) l->addr = addr; l->refs = 0; scpy(name, l->name, 64); - printf("New label: %s, at 0x%04x\n", l->name, l->addr); + printf("New label #%d: %s, at 0x%04x\n", p.llen, l->name, l->addr); return 1; }