Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BITS 64
- SECTION .TEXT
- GLOBAL _rindex
- _rindex:
- xor rax,rax
- _loop:
- cmp [rdi], sil
- je _found
- cmp [rdi], BYTE 0
- je _end
- inc rdi
- jmp _loop
- _found:
- mov rax, rdi
- inc rdi
- jmp _loop
- _end:
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement