(console.write.tal) Added output example to /error port
This commit is contained in:
parent
413f3a82f8
commit
187f92d31d
|
@ -5,12 +5,18 @@
|
||||||
|0100
|
|0100
|
||||||
|
|
||||||
@on-reset ( -> )
|
@on-reset ( -> )
|
||||||
;text
|
( | write )
|
||||||
&while ( -- )
|
{ "Hello 20 "Write 0a 00 }
|
||||||
|
STH2r
|
||||||
|
&wa ( -- )
|
||||||
LDAk .Console/write DEO
|
LDAk .Console/write DEO
|
||||||
INC2 LDAk ?&while
|
INC2 LDAk ?&wa
|
||||||
|
POP2
|
||||||
|
( | error )
|
||||||
|
{ "Hello 20 "Error 0a 00 }
|
||||||
|
STH2r
|
||||||
|
&wb ( -- )
|
||||||
|
LDAk .Console/error DEO
|
||||||
|
INC2 LDAk ?&wb
|
||||||
POP2 BRK
|
POP2 BRK
|
||||||
|
|
||||||
@text
|
|
||||||
"Hello $1
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue