pbn/curso/exemplos/07/exit42.asm
2025-05-26 08:04:03 -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