aboutsummaryrefslogtreecommitdiff
path: root/examples/modulo.hdass
blob: 44c290dcfbddb94388239bf662fb0ee0881a1e9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[entry: main]

// Modulo: 2024 % 100 = 24, returned as the exit status.
const SYS_EXIT = 60

proc main
{
    rax = 2024
    rbx = 100
    rax %= rbx

    rdi = rax
    rax = SYS_EXIT
    syscall
}