summaryrefslogtreecommitdiff
path: root/03/in03
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2021-11-13 14:32:00 -0500
committerpommicket <pommicket@gmail.com>2021-11-13 14:32:00 -0500
commitc664b4e61b54bed0bd55924c97fcad9d5ad97e21 (patch)
treebcc3ef0cd3263d08a7a5fd0629f14b11aef4c424 /03/in03
parent2507f4b19677e73521e1f03b3a915e1d0c5fcee1 (diff)
pretty much done 03 compiler!
Diffstat (limited to '03/in03')
-rw-r--r--03/in036
1 files changed, 2 insertions, 4 deletions
diff --git a/03/in03 b/03/in03
index 3be190d..dcbf395 100644
--- a/03/in03
+++ b/03/in03
@@ -1,10 +1,8 @@
-return
-str Hi
-align
-return
+; write to stdout
J=d1
I=:hello_world
D=:hello_world_end
+; calculate length by subtracting end from start
D-=I
syscall d1
J=d42