about summary refs log tree commit diff stats
path: root/linux/ex1.mu
blob: fbf38d0cf56874fe9a56b4d763650e2e6d905635 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# First example: return the answer to the Ultimate Question of Life, the
# Universe, and Everything.
#
# To run:
#   $ ./translate ex1.mu
#   $ ./a.elf
# Expected result:
#   $ echo $?
#   42

fn main -> _/ebx: int {
  return 0x2a  # Mu requires hexadecimal
}