primeiro exemplo

This commit is contained in:
Blau Araujo 2025-05-14 11:42:35 -03:00
parent 52d1a2afbd
commit 348e041ff9
2 changed files with 10 additions and 1 deletions

View file

@ -270,7 +270,7 @@ a =R15=.
* Primeiro exemplo em Assembly x86_64
#+begin_src asm
#+begin_src asm :tangle exemplos/01/exit42.asm
; Retorna 42 como estado de término
section .text

View file

@ -0,0 +1,9 @@
; 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