forked from blau_araujo/pbn
exemplos da aula 6
This commit is contained in:
parent
ee62511898
commit
4d701d4461
5 changed files with 304 additions and 0 deletions
9
curso/exemplos/06/exit42.asm
Normal file
9
curso/exemplos/06/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