Last active
August 29, 2015 14:06
-
-
Save igorw/efd29bf9538b2c4f4b6d 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
# data | |
store 0 "Hello, world of spaces!" | |
# p = 0 | |
push 0 | |
label 3 # beginning | |
# *p | |
dup | |
retrieve | |
# if (*p) | |
dup | |
jumpz 23 # exit | |
# write(*p) | |
write_char | |
# p++ | |
push 1 | |
add | |
jump 3 # beginning | |
label 23 # exit | |
write_char 10 | |
write_char 13 | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment