Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;--------------------------------
  2. ;iseven(1)/1
  3. ;Check if even number
  4. ;--------------------------------
  5. ;push1  : Number to check
  6. ;--------------------------------
  7. ;Ret    : 0 if no. 1 if yes
  8. ;Note   :
  9. ;--------------------------------
  10. align 4
  11. iseven:
  12.         mov     eax,[esp+4]
  13.         not     eax
  14.         and     eax, 1
  15.         ret     4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement