1 fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) {
2 var result/eax: int <- do-add 3, 4
3 draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen screen, result, 3/fg=cyan 0/bg
6 fn do-add a: int, b: int -> _/eax: int {
7 var result/eax: int <- copy a
13 var observed/eax: int <- do-add 0, 0
14 check-ints-equal observed, 0, "F - 0+0"
15 observed <- do-add 3, 0
16 check-ints-equal observed, 3, "F - 3+0"
17 observed <- do-add 3, 2
18 check-ints-equal observed, 5, "F - 3+2"