about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-08-15 21:43:52 -0700
committerKartik Agaram <vc@akkartik.com>2020-08-15 21:43:52 -0700
commit1a1ab91e7728e59305361dbf8b97030ded472ae5 (patch)
treecefc02b5226d8cc80cbab6fa22b3e5245931a164 /apps
parent828bc32057511bc88bd651f2e7c9cf19706378d3 (diff)
downloadmu-1a1ab91e7728e59305361dbf8b97030ded472ae5.tar.gz
6717
Diffstat (limited to 'apps')
-rw-r--r--apps/hello.mu10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/hello.mu b/apps/hello.mu
new file mode 100644
index 00000000..a305edf0
--- /dev/null
+++ b/apps/hello.mu
@@ -0,0 +1,10 @@
+# Meaningless conventional example.
+#
+# To run:
+#   $ ./translate_mu apps/hello.mu
+#   $ ./a.elf
+
+fn main -> exit-status/ebx: int {
+  print-string 0, "Hello world!\n"
+  exit-status <- copy 0
+}