Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global main
- extern printf
- extern scanf
- section .data
- ; napis db 0
- format db "%s",0
- outformat db "%s",10,0
- newline db 10,0
- section .bss
- napis resb 16
- section .text
- main:
- mov rdi, format
- mov rsi, napis
- mov rax, 0
- call scanf
- mov rdi, outformat
- mov rsi, napis
- mov rax, 0
- call printf
- mov rax, 60
- mov rdi, 0
- syscall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement