diff options
Diffstat (limited to 'linux/apps/ex1.mu')
-rw-r--r-- | linux/apps/ex1.mu | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/linux/apps/ex1.mu b/linux/apps/ex1.mu new file mode 100644 index 00000000..36304803 --- /dev/null +++ b/linux/apps/ex1.mu @@ -0,0 +1,15 @@ +# First example: return the answer to the Ultimate Question of Life, the +# Universe, and Everything. +# +# Same as https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html +# +# To run: +# $ ./translate apps/ex1.mu +# $ ./a.elf +# Expected result: +# $ echo $? +# 42 + +fn main -> _/ebx: int { + return 0x2a # Mu requires hexadecimal +} |