From c70f16f7ac2611339b51ffdfe0aaf655d368899e Mon Sep 17 00:00:00 2001 From: neauoire Date: Sat, 28 Aug 2021 10:49:51 -0700 Subject: [PATCH] Formatted changes --- src/uxnasm.c | 2 +- src/uxncli.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/uxnasm.c b/src/uxnasm.c index a64953e..3c0b91d 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -153,7 +153,7 @@ makemacro(char *name, FILE *f) return error("Macro duplicate", name); if(sihx(name) && slen(name) % 2 == 0) return error("Macro name is hex number", name); - if(findopcode(name) || scmp(name, "BRK", 4) || !slen(name) || scmp(name,"include",8)) + if(findopcode(name) || scmp(name, "BRK", 4) || !slen(name) || scmp(name, "include", 8)) return error("Macro name is invalid", name); m = &p.macros[p.mlen++]; scpy(name, m->name, 64); diff --git a/src/uxncli.c b/src/uxncli.c index 921cbb3..57155b6 100644 --- a/src/uxncli.c +++ b/src/uxncli.c @@ -132,13 +132,13 @@ uxn_halt(Uxn *u, Uint8 error, char *name, int id) static void run(Uxn *u) { - Uint16 vec = PAGE_PROGRAM; + Uint16 vec = PAGE_PROGRAM; uxn_eval(u, vec); while((!u->dev[0].dat[0xf]) && (read(0, &devconsole->dat[0x2], 1) > 0)) { - vec = mempeek16(devconsole->dat, 0); - if (!vec) vec = u->ram.ptr; /* continue after last BRK */ + vec = mempeek16(devconsole->dat, 0); + if(!vec) vec = u->ram.ptr; /* continue after last BRK */ uxn_eval(u, vec); - } + } } static int