Formatted changes

This commit is contained in:
neauoire 2021-08-28 10:49:51 -07:00
parent 83de614e53
commit c70f16f7ac
2 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

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