uxn/projects/examples/devices/console.usm

23 lines
251 B
Plaintext
Raw Normal View History

2021-04-21 12:09:18 -04:00
( dev/console )
2021-02-20 18:00:34 -05:00
2021-03-16 00:29:44 -04:00
%RTN { JMP2r }
( devices )
|10 @Console [ &pad $8 &char $1 ]
2021-04-21 12:48:04 -04:00
( init )
2021-04-21 12:48:04 -04:00
|0100 ( -> )
2021-02-20 18:00:34 -05:00
2021-05-13 11:47:18 -04:00
,hello-word
2021-02-20 18:00:34 -05:00
2021-04-20 14:32:26 -04:00
&loop
2021-05-13 11:47:18 -04:00
( send ) LDRk .Console/char DEO
( incr ) #01 ADD
( loop ) DUP ,&loop JCN
POP
BRK
2021-02-20 18:00:34 -05:00
@hello-word "hello 20 "World!