aboutsummaryrefslogtreecommitdiff
path: root/examples/call.hdass
blob: bf0c515241b3f0fca4f2df69e1b63fbd504710aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[entry: main]

// 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)
}