mirror of
https://git.sr.ht/~rabbits/uxn
synced 2025-01-03 14:11:11 +00:00
(console.tal) Cleanup
This commit is contained in:
parent
253dc0974f
commit
0d7518bfdf
1 changed files with 7 additions and 9 deletions
|
@ -14,22 +14,22 @@
|
||||||
;Dict/hello <print-str>
|
;Dict/hello <print-str>
|
||||||
.Console/type DEI ?{
|
.Console/type DEI ?{
|
||||||
( | no arguments )
|
( | no arguments )
|
||||||
;on-stdin .Console/vector DEO2
|
;on-std .Console/vector DEO2
|
||||||
BRK }
|
BRK }
|
||||||
;on-argument .Console/vector DEO2
|
;on-arg .Console/vector DEO2
|
||||||
BRK
|
BRK
|
||||||
|
|
||||||
@on-argument ( -> )
|
@on-arg ( -> )
|
||||||
[ LIT2 02 -Console/type ] DEI NEQ ?{
|
[ LIT2 02 -Console/type ] DEI NEQ ?{
|
||||||
.Console/read DEI [ LIT2 00 &ptr -arg ] INCk ,&ptr STR
|
.Console/read DEI [ LIT2 00 &ptr -arg ] INCk ,&ptr STR
|
||||||
STZ2
|
STZ2
|
||||||
BRK }
|
BRK }
|
||||||
;arg ;Dict/yousent <print-result>
|
;arg ;Dict/yousent <print-result>
|
||||||
[ LIT2 04 -Console/type ] DEI NEQ ?{ ;on-stdin .Console/vector DEO2 }
|
[ LIT2 04 -Console/type ] DEI NEQ ?{ ;on-std .Console/vector DEO2 }
|
||||||
[ LIT2 -arg _&ptr ] STR
|
[ LIT2 -arg _&ptr ] STR
|
||||||
BRK
|
BRK
|
||||||
|
|
||||||
@on-stdin ( -> )
|
@on-std ( -> )
|
||||||
[ LIT2 0a -Console/read ] DEI EQU ?{
|
[ LIT2 0a -Console/read ] DEI EQU ?{
|
||||||
.Console/read DEI [ LIT2 00 &ptr -std ] INCk ,&ptr STR
|
.Console/read DEI [ LIT2 00 &ptr -std ] INCk ,&ptr STR
|
||||||
STZ2
|
STZ2
|
||||||
|
@ -39,8 +39,9 @@
|
||||||
[ LIT2 -std _&ptr ] STR
|
[ LIT2 -std _&ptr ] STR
|
||||||
BRK
|
BRK
|
||||||
|
|
||||||
@quit ( buf* -> )
|
@quit ( -> )
|
||||||
#800f DEO
|
#800f DEO
|
||||||
|
#010e DEO
|
||||||
BRK
|
BRK
|
||||||
|
|
||||||
@<print-result> ( buf* name* -- )
|
@<print-result> ( buf* name* -- )
|
||||||
|
@ -52,9 +53,6 @@
|
||||||
#0a18 DEO
|
#0a18 DEO
|
||||||
JMP2r
|
JMP2r
|
||||||
|
|
||||||
(
|
|
||||||
@|stdlib )
|
|
||||||
|
|
||||||
@<print-str> ( str* -- )
|
@<print-str> ( str* -- )
|
||||||
LDAk #18 DEO
|
LDAk #18 DEO
|
||||||
INC2 & LDAk ?<print-str>
|
INC2 & LDAk ?<print-str>
|
||||||
|
|
Loading…
Reference in a new issue