Formatted changes
This commit is contained in:
parent
83de614e53
commit
c70f16f7ac
|
@ -153,7 +153,7 @@ makemacro(char *name, FILE *f)
|
||||||
return error("Macro duplicate", name);
|
return error("Macro duplicate", name);
|
||||||
if(sihx(name) && slen(name) % 2 == 0)
|
if(sihx(name) && slen(name) % 2 == 0)
|
||||||
return error("Macro name is hex number", name);
|
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);
|
return error("Macro name is invalid", name);
|
||||||
m = &p.macros[p.mlen++];
|
m = &p.macros[p.mlen++];
|
||||||
scpy(name, m->name, 64);
|
scpy(name, m->name, 64);
|
||||||
|
|
|
@ -136,7 +136,7 @@ run(Uxn *u)
|
||||||
uxn_eval(u, vec);
|
uxn_eval(u, vec);
|
||||||
while((!u->dev[0].dat[0xf]) && (read(0, &devconsole->dat[0x2], 1) > 0)) {
|
while((!u->dev[0].dat[0xf]) && (read(0, &devconsole->dat[0x2], 1) > 0)) {
|
||||||
vec = mempeek16(devconsole->dat, 0);
|
vec = mempeek16(devconsole->dat, 0);
|
||||||
if (!vec) vec = u->ram.ptr; /* continue after last BRK */
|
if(!vec) vec = u->ram.ptr; /* continue after last BRK */
|
||||||
uxn_eval(u, vec);
|
uxn_eval(u, vec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue