Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .section .data
- a: .long 16
- b: .long 24
- n: .long 0
- .section .text
- .global main
- nzd:
- pushl %ebp
- movl %esp, %ebp
- movl 8(%ebp), %eax
- movl 12(%ebp), %ecx
- nzdWhile:
- cmpl %eax, %ecx
- je nzdWhileKraj
- jg nzdWhileSmanjiDrugi
- subl %ecx, %eax
- jmp nzdWhileKraj
- nzdWhileSmanjiDrugi:
- subl %eax, %ecx
- nzdWhileKraj:
- movl %ebp, %esp
- popl %ebp
- ret
- main:
- pushl a
- pushl b
- call nzd
- addl $8, %esp
- movl %eax, n
- kraj:
- movl $1, %eax
- movl $0, %ebx
- int $0x80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement