pbn/curso/exemplos/01/exit42.asm

10 lines
181 B
NASM
Raw Permalink Normal View History

2025-05-14 11:42:35 -03:00
; 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