Created
April 16, 2025 22:24
-
-
Save wholivesinapineappleunderthesea/b4433fbf262ff92d1f1d6556aed106bc to your computer and use it in GitHub Desktop.
funnymemcpy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stupid_memcpy_multiple_of_two PROC | |
mov rax, rsp | |
lea rsp, [rcx+r8] | |
_next_word: | |
mov r9w, [rdx+r8] | |
push r9w | |
sub r8, 2 | |
test r8, r8 | |
jnz _next_word | |
mov rsp, rax | |
ret | |
stupid_memcpy_multiple_of_two ENDP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment