mu/tutorial/task4.mu

16 lines
273 B
Forth
Raw Permalink Normal View History

2021-10-20 18:51:24 +00:00
fn the-answer -> _/eax: int {
var result/eax: int <- copy 0
# insert your statement below {
# }
return result
}
fn test-the-answer {
var result/eax: int <- the-answer
2021-10-20 21:35:18 +00:00
check-ints-equal result, 0x2a, "F - the-answer should return 42, but didn't"
2021-10-20 18:51:24 +00:00
}
fn main {
}