commit acf6dcee489be583a7cab0e35671da32a1cc5619
parent 1704e23b4d31072cffd826e6d3ed10f3848585d7
Author: neauoire <aliceffekt@gmail.com>
Date: Mon, 16 Aug 2021 18:45:27 -0700
Removed unused macro in console example
Diffstat:
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/projects/examples/devices/console.echo.tal b/projects/examples/devices/console.echo.tal
@@ -4,8 +4,6 @@
Copies data from stdin to both stdout and stderr.
)
-%RTN { JMP2r }
-
|10 @Console [ &vector $2 &read $1 &pad $5 &write $1 &error $1 ]
( init )
@@ -20,7 +18,6 @@ BRK
.Console/read DEI
DUP .Console/write DEO
- .Console/error DEO
+ .Console/error DEO
BRK
-
diff --git a/src/uxncli.c b/src/uxncli.c
@@ -133,7 +133,7 @@ static void
run(Uxn *u)
{
uxn_eval(u, PAGE_PROGRAM);
- while(read(0, &devconsole->dat[0x2], 1) > 0)
+ while(read(0, &devconsole->dat[0x2], 1) > 0)
uxn_eval(u, mempeek16(devconsole->dat, 0));
}