sfl-examples/slide-examples/sysexit.asm.inc

11 lines
217 B
PHP

; use this to show that actual code has ended
nop
nop
nop
nop
; sys_exit(42)
mov rax,60 ; system call number (sys_exit)
mov rdi,42 ; system call return value
syscall