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

const SYS_WRITE = 1
const SYS_EXIT = 60

const STDOUT = 1

data greeting = "hdass works!\n"

proc main
{
    rax = SYS_WRITE
    rdi = STDOUT
    rsi = greeting
    rdx = greeting.len
    syscall

    rax = SYS_EXIT
    rdi = 0
    syscall
}