Advertisement
Guest User

Untitled

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