writing nonzero to "halt" port halts the read() loop.

This commit is contained in:
neauoire 2021-08-17 08:57:10 -07:00
parent acf6dcee48
commit fd907e87d6
1 changed files with 1 additions and 1 deletions

View File

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