############################################################################### # © Gustavo Romero López 2020 - GPLv3 - gustavo@ugr.es # void exit(int status); # al edi # 0x3c 0 # gcc -m64 -nostartfiles 08.s -o 08 ############################################################################### .text _start: .globl _start xor %eax, %eax mov $0x3c, %al # sys_exit xor %edi, %edi # return value 0 syscall