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

const SYS_EXIT = 60

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

proc main
{
    exit_with(21)
}