about summary refs log blame commit diff stats
path: root/apps/ex1.mu
blob: f6d67001522e5430076ecb215a47eaa77d062ba6 (plain) (tree)
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_mu apps/ex1.mu
#   $ ./a.elf
# Expected result:
#   $ echo $?
#   42

fn main -> result/ebx: int {
  result <- copy 0x2a  # Mu requires hexadecimal
}