Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern printf
- extern scanf
- section .data
- liczba dd 0
- napis db "Enter number: ",0
- format db "%d",0
- section .text
- global main
- main:
- ;wypisywanie na ekran
- mov rbx, rsi
- xor rax, rax
- mov rdi, qword napis
- call printf
- ;wczytywanie
- xor rax, rax
- mov rdi, format
- mov rsi, liczba
- call scanf
- ;wyjscie
- mov eax,1
- mov ebx,0
- int 80h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement