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

const SYS_EXIT = 60

proc main
{
    stack cell[8]

    rbx = 7
    rsi = cell
    ^rsi = rbx
    rdi = ^rsi

    rax = SYS_EXIT
    syscall
}