Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global main
- extern printf
- extern scanf
- section .data
- napis_1: db 'Chuj',10,0
- napis_2: db 'Nic',10,0
- format: db '%d',0
- section .bss
- licznik: resq 1
- section .text
- main:
- mov rax,0
- mov rdi, format
- mov rsi, licznik
- call scanf
- cmp rax, 0
- jz koniec
- cmp qword [licznik], 10
- jg nic
- jl chuj
- chuj:
- mov rdi, napis_1
- jz koniec
- nic:
- mov rdi, napis_2
- jz koniec
- jmp main
- koniec:
- mov rax, 1
- mov rbx, 1
- int 80h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement