about summary refs log blame commit diff stats
path: root/linux/apps/ex1.mu
blob: 363048039d5cd0da06f23dfdeee19c9df748d077 (plain) (tree)
1
2
3
4
5
6
7


                                                                        

                                                                        
         
                             




                  

                                        
 
# 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
}