writing nonzero to "halt" port halts the read() loop.
This commit is contained in:
parent
acf6dcee48
commit
fd907e87d6
|
@ -133,7 +133,7 @@ static void
|
|||
run(Uxn *u)
|
||||
{
|
||||
uxn_eval(u, PAGE_PROGRAM);
|
||||
while(read(0, &devconsole->dat[0x2], 1) > 0)
|
||||
while((!u->dev[0].dat[0xf]) && (read(0, &devconsole->dat[0x2], 1) > 0))
|
||||
uxn_eval(u, mempeek16(devconsole->dat, 0));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue