uxn

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

commit c70f16f7ac2611339b51ffdfe0aaf655d368899e
parent 83de614e532e2bb7d9d418e15832265c1d81b08b
Author: neauoire <aliceffekt@gmail.com>
Date:   Sat, 28 Aug 2021 10:49:51 -0700

Formatted changes

Diffstat:
Msrc/uxnasm.c | 2+-
Msrc/uxncli.c | 8++++----
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git 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 @@ -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