pbn/curso/exemplos/06/exit42.asm
2025-05-25 12:27:43 -03:00

9 lines
181 B
NASM

; Retorna 42 como estado de término
section .text
global _start
_start:
mov rax, 60 ; syscall: exit
mov rdi, 42 ; código de saída
syscall