a guest May 20th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #(dzielna)-- funkcja oblicza modulo2
  2. .type modulo2, @function
  3. modulo2:
  4. pushl %ebp
  5. movl %esp, %ebp
  6. movl 8(%ebp), %edi
  7. movl (%edi), %ebx #pobierz pierwsze 4 bajty dzielnej do ebx
  8. xorl %eax, %eax #wyzerowanie eax
  9. cmpl $0, %ebx
  10. jz set0
  11. set1:
  12. movb $1, %al
  13. jmp return
  14. set0:
  15. movb $0, %al
  16. return:
  17. movl %ebp, %esp
  18. popl %ebp
  19. ret
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand