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

const SYS_EXIT = 60

proc main
{
    r1 = 4
    r2 = 3
    r1 += r2
    r1 *= r2

    r6 = r1
    r1 = SYS_EXIT
    syscall
}