Single vector uxncli
This commit is contained in:
parent
a1d18f62f3
commit
52d5e2d694
10
src/uxncli.c
10
src/uxncli.c
|
@ -132,9 +132,13 @@ uxn_halt(Uxn *u, Uint8 error, char *name, int id)
|
||||||
static void
|
static void
|
||||||
run(Uxn *u)
|
run(Uxn *u)
|
||||||
{
|
{
|
||||||
uxn_eval(u, PAGE_PROGRAM);
|
Uint16 vec = PAGE_PROGRAM;
|
||||||
while((!u->dev[0].dat[0xf]) && (read(0, &devconsole->dat[0x2], 1) > 0))
|
uxn_eval(u, vec);
|
||||||
uxn_eval(u, mempeek16(devconsole->dat, 0));
|
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 */
|
||||||
|
uxn_eval(u, vec);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in New Issue