summaryrefslogtreecommitdiffhomepage
path: root/examples/asm/exit_nekernel_abi.asm
blob: 6f69a00ae3565f3096a57586ff0d36e1b786a7a2 (plain)
1
2
3
4
5
6
7
8
9
10
%bits 64
%org 0x40000000

public_segment .code64 __ImageStart
    xor rax, rax
    mov rcx, 1 ;; syscall id
    mov rdx, 0 ;; arg1
    syscall ;; exit
    mov rax, rbx
    ret