Last active
October 20, 2021 11:10
-
-
Save sglienke/a41245c58789dbba3cba52b97e55b079 to your computer and use it in GitHub Desktop.
This file contains 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
mov eax,ecx | |
shr eax,$10 | |
and ecx,$0000ffff | |
mov edx,eax | |
and edx,$ffff0000 | |
mov r8d,eax | |
and r8d,$000000ff | |
shl r8d,$08 | |
and eax,$0000ff00 | |
shr eax,$08 | |
or r8d,eax | |
or edx,r8d | |
mov eax,ecx | |
and eax,$ffff0000 | |
mov r8d,ecx | |
and r8d,$000000ff | |
shl r8d,$08 | |
and ecx,$0000ff00 | |
shr ecx,$08 | |
or r8d,ecx | |
or eax,r8d | |
shl eax,$10 | |
or edx,eax | |
mov eax,edx | |
ret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment