uxn/projects/examples/devices/console.read.tal

17 lines
294 B
Tal
Raw Permalink Normal View History

2023-07-16 13:04:40 -04:00
( usage: uxncli console.read.rom )
|10 @Console &vector $2 &read $1 &pad $4 &type $1 &write $1 &error $1
|0100
@on-reset ( -> )
;on-console .Console/vector DEO2
( type something in the console )
BRK
@on-console ( -> )
.Console/read DEI .Console/write DEO
#0a .Console/write DEO
BRK