about summary refs log tree commit diff stats
path: root/linux/apps/ex1.mu
blob: 363048039d5cd0da06f23dfdeee19c9df748d077 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}