pbn/curso/exemplos/01/exit42.asm
2025-05-14 11:42:35 -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