2020-08-16 04:43:52 +00:00
|
|
|
# Meaningless conventional example.
|
|
|
|
#
|
|
|
|
# To run:
|
2021-03-04 08:11:23 +00:00
|
|
|
# $ ./translate hello.mu
|
2020-08-16 04:43:52 +00:00
|
|
|
# $ ./a.elf
|
|
|
|
|
2020-11-02 06:02:13 +00:00
|
|
|
fn main -> _/ebx: int {
|
2021-02-07 08:17:17 +00:00
|
|
|
print-string 0/screen, "Hello world!\n"
|
2020-11-02 06:02:13 +00:00
|
|
|
return 0
|
2020-08-16 04:43:52 +00:00
|
|
|
}
|