Created
April 16, 2023 01:45
-
-
Save Ismael-VC/778d3976669d50ce22227de3280ff048 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|10 @Console &vector $2 &read $1 &pad $5 &write $1 &error $1 | |
|0100 @on-reset ( -> ) | |
#03 #00 | |
&for | |
( send ) ;hello-word print-text | |
( loop ) INC GTHk ?&for | |
POP2 | |
BRK | |
@print-text ( str* -- ) | |
&while | |
( send ) LDAk .Console/write DEO | |
( loop ) INC2 LDAk ?&while | |
POP2 | |
JMP2r | |
@hello-word "Hello 20 "World! 0a 00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment