Advertisement
juaniisuar

Arqui 3.2

Oct 10th, 2017
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. .data
  2. str1: .asciz "pepereloco"
  3. str2: .asciz "pepereloco"
  4. lng: .quad 10
  5.  
  6. .text
  7.  
  8. .global main
  9. main:
  10. cld # izq a der
  11. movq lng, %rcx
  12. movq $str1, %rsi
  13. movq $str2, %rdi
  14.  
  15. for1:
  16. cmpsb
  17. loope for1
  18.  
  19. movq $0, %rax
  20. jne fin
  21. movq $1, %rax
  22.  
  23. fin:
  24. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement