blob: 121877381ce0f3e4945254d5663354c54d2d7bf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Returns the larger of two values (max(3, 8) = 8) as the exit status.
const SYS_EXIT = 60
proc main
{
rbx = 3
rcx = 8
rdi = rbx
if rcx <= rbx
goto done
rdi = rcx
done:
rax = SYS_EXIT
syscall
}
|