Skip to content

Instantly share code, notes, and snippets.

@Ismael-VC
Created April 16, 2023 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ismael-VC/778d3976669d50ce22227de3280ff048 to your computer and use it in GitHub Desktop.
Save Ismael-VC/778d3976669d50ce22227de3280ff048 to your computer and use it in GitHub Desktop.
|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