aboutsummaryrefslogtreecommitdiffstats
path: root/src/x86_64/postlude.asm
blob: 37f9df12f4392b201229421a8cb81766f83d6a6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

_start_return:
    ;; return the last value in the stack
    pop     rdi
    call    display

exit:
    ; exit syscall
    mov     rax, 60
    xor     rdi, rdi
    syscall

section .bss
bdl_heap:
    resb    HEAP_SIZE