Skip to content

Instantly share code, notes, and snippets.

@stryku
Created March 5, 2017 17:32
Show Gist options
  • Save stryku/28133bcc7eea0966e1e2a86d243b6d7c to your computer and use it in GitHub Desktop.
Save stryku/28133bcc7eea0966e1e2a86d243b6d7c to your computer and use it in GitHub Desktop.
pop eax ; 0
pop ecx ; 2
cmp eax, 0 ; 4
jg end ; 7
mov ebx, 0 ; 9
loop:
add ebx, ecx ; 12
cmp ecx, 0 ; 15
jg loop ; 18
mov eax, ebx ; 20
end:
ret ; 23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment