View Single Post
  #7  
Old 02-07-2017, 21:09
BlackWhite BlackWhite is offline
Friend
 
Join Date: Apr 2013
Posts: 85
Rept. Given: 4
Rept. Rcvd 14 Times in 6 Posts
Thanks Given: 14
Thanks Rcvd at 56 Times in 25 Posts
BlackWhite Reputation: 14
I think you may also take advantage of the instruction "setnz":
Code:
mov eax, [val]
or eax, eax
setnz al
neg al
movsx eax, al
Reply With Quote
The Following User Says Thank You to BlackWhite For This Useful Post:
niculaita (02-08-2017)