Skip to content

Instantly share code, notes, and snippets.

@israellot
Last active October 1, 2022 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save israellot/b6f3031f4503801e4512450709ebe0ee to your computer and use it in GitHub Desktop.
Save israellot/b6f3031f4503801e4512450709ebe0ee to your computer and use it in GitHub Desktop.
Pro vs Senior asm output
//while (z < limit)
// {
// sum0 += (uint)(ptr[z + 0] + ptr[z + 4] + ptr[z + 8] + ptr[z + 12]
//PRO
G_M000_IG06:
cmp r11d, ecx
jae G_M000_IG17
mov ebx, r11d
movzx rbx, byte ptr [rdx+rbx]
add eax, ebx
lea ebx, [r11+04H]
cmp ebx, ecx
jae G_M000_IG17
mov ebx, ebx
movzx rbx, byte ptr [rdx+rbx]
add eax, ebx
lea ebx, [r11+08H]
cmp ebx, ecx
jae G_M000_IG17
mov ebx, ebx
movzx rbx, byte ptr [rdx+rbx]
add eax, ebx
lea ebx, [r11+0CH]
//SENIOR
G_M000_IG06:
mov ebx, r11d
movzx rbx, byte ptr [rdx+rbx]
add eax, ebx
lea ebx, [r11+04H]
movzx rbx, byte ptr [rdx+rbx]
add eax, ebx
lea ebx, [r11+08H]
movzx rbx, byte ptr [rdx+rbx]
add eax, ebx
lea ebx, [r11+0CH]
movzx rbx, byte ptr [rdx+rbx]
add eax, ebx
lea ebx, [r11+10H]
movzx rbx, byte ptr [rdx+rbx]
add eax, ebx
lea ebx, [r11+14H]
movzx rbx, byte ptr [rdx+rbx]
add eax, ebx
lea ebx, [r11+18H]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment