aboutsummaryrefslogtreecommitdiff
path: root/examples/call.hdass
blob: 239a26b8192cbed14cb59e120794daabb1280283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Passes an argument through a proc parameter, which exits with that value.
const SYS_EXIT = 60

proc exit_with(code: rdi)
{
    rax = SYS_EXIT
    syscall
}

proc main
{
    exit_with(21)
}