forked from blau_araujo/pbn
exemplos da aula 7
This commit is contained in:
parent
05ef406060
commit
c142033bf7
3 changed files with 234 additions and 0 deletions
9
curso/exemplos/07/exit42.asm
Normal file
9
curso/exemplos/07/exit42.asm
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue