hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/examples/branch.hdass
blob: 9a3146355ba9916b8152a930417722df66955ec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[entry: main]

const SYS_EXIT = 60

proc main
{
    rbx = 3
    rcx = 8

    rdi = rbx
    if rcx <= rbx
        goto done
    rdi = rcx

done:
    rax = SYS_EXIT
    syscall
}