Advertisement
Guest User

Untitled

a guest
May 27th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   mov edx, [esp+8]
  2.   cmp edx, 0
  3.   ja @f
  4.   mov eax, 0
  5.   ret
  6.  
  7.   @@:
  8.   cmp edx, 2
  9.   ja @f
  10.  
  11.   mov eax, 1
  12.   ret
  13.  
  14.   @@:
  15.   push ebx
  16.   mov ebx, 1
  17.   mov ecx, 1
  18.  
  19.  
  20.   @@:
  21.       lea eax, [ebx+ecx]
  22.       cmp edx, 3
  23.       jbe @f
  24.  
  25.       mov ebx, ecx
  26.       mov ecx, eax
  27.       dec edx
  28.       jmp @b
  29.  
  30.   @@:
  31.   pop ebx
  32.   ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement