Advertisement
Guest User

strrev

a guest
Aug 21st, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. 0000000000000000 <strrev>:
  2. 0: 31 c0 xor eax,eax
  3. 2: 48 8d 48 ff lea rcx,[rax-0x1]
  4. 6: 48 89 fe mov rsi,rdi
  5. 9: f2 ae repnz scas al,BYTE PTR es:[rdi]
  6. b: 48 f7 d1 not rcx
  7. e: 48 d1 e9 shr rcx,1
  8. 11: 48 ff cf dec rdi
  9. 14: 48 ff cf dec rdi
  10. 17: ac lods al,BYTE PTR ds:[rsi]
  11. 18: 86 07 xchg BYTE PTR [rdi],al
  12. 1a: 88 46 ff mov BYTE PTR [rsi-0x1],al
  13. 1d: e2 f5 loop 14 <strrev+0x14>
  14. 1f: c3 ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement