Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Poredjenje dva oznacena broja a i b u dvostrukoj preciznosti
- # dmarjanovic
- .section .data
- a: .quad 0x87654321123A1234
- b: .quad 0x876543211234FDEB
- .section .text
- .globl main
- main:
- movl a+4, %eax
- movl b+4, %ebx
- cmpl %ebx, %eax
- jg a_bigger
- jl b_bigger
- movl a, %eax
- movl b, %ebx
- cmpl %ebx, %eax
- jg a_bigger
- jl b_bigger
- # a = b
- movl $0, %eax
- jmp end
- a_bigger:
- movl $1, %eax
- jmp end
- b_bigger:
- movl $-1, %eax
- end:
- movl $1, %eax
- int $0x80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement