mu/linux/ex1.mu

14 lines
260 B
Forth
Raw Normal View History

2020-01-02 22:12:46 +00:00
# First example: return the answer to the Ultimate Question of Life, the
# Universe, and Everything.
#
# To run:
2021-03-04 08:11:23 +00:00
# $ ./translate ex1.mu
2020-01-02 22:12:46 +00:00
# $ ./a.elf
# Expected result:
# $ echo $?
# 42
2020-11-02 06:02:13 +00:00
fn main -> _/ebx: int {
return 0x2a # Mu requires hexadecimal
2020-01-02 22:12:46 +00:00
}