From acf6dcee489be583a7cab0e35671da32a1cc5619 Mon Sep 17 00:00:00 2001 From: neauoire Date: Mon, 16 Aug 2021 18:45:27 -0700 Subject: [PATCH] Removed unused macro in console example --- projects/examples/devices/console.echo.tal | 5 +---- src/uxncli.c | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/projects/examples/devices/console.echo.tal b/projects/examples/devices/console.echo.tal index 0f43476..d0400c1 100644 --- 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 index ecddb72..1c76d6b 100644 --- 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)); }