forked from blau_araujo/pbn
aula 2
This commit is contained in:
parent
4d3fd62679
commit
af6a245d76
3 changed files with 135 additions and 0 deletions
17
curso/exemplos/02/salve.asm
Normal file
17
curso/exemplos/02/salve.asm
Normal file
|
@ -0,0 +1,17 @@
|
|||
section .data
|
||||
msg db "Salve, simpatia!", 10
|
||||
len equ $ - msg
|
||||
|
||||
section .text
|
||||
global _start
|
||||
|
||||
_start:
|
||||
mov rax, 1 ; syscall write
|
||||
mov rdi, 1 ; stdout
|
||||
mov rsi, msg
|
||||
mov rdx, len
|
||||
syscall
|
||||
|
||||
mov rax, 60 ; syscall exit
|
||||
xor rdi, rdi ; código de saída 0
|
||||
syscall
|
Loading…
Add table
Add a link
Reference in a new issue