Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Dijeljenje pomocu oduzimanja
- # dmarjanovic
- .section .data
- rezultat: .long 0
- a: .long 8
- b: .long 3
- .section .text
- .globl main
- main:
- movl a, %eax
- movl rezultat, %edx
- while:
- cmpl b, %eax
- jl end
- subl b, %eax
- incl %edx
- jmp while
- end:
- movl %edx, rezultat
- movl $1, %eax
- int $0x80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement