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

const SYS_EXIT = 60

proc main
{
    rdi = 5
    rdi += 3
    rdi *= 2
    rdi -= 1

    rax = SYS_EXIT
    syscall
}