mu/tutorial/task4-solution.mu

16 lines
295 B
Forth

fn the-answer -> _/eax: int {
var result/eax: int <- copy 0
# insert your statement below {
result <- copy 0x2a
# }
return result
}
fn test-the-answer {
var result/eax: int <- the-answer
check-ints-equal result, 0x2a, "F - the-answer should return 42, but didn't."
}
fn main {
}