Thread
:
Multiply by negative one
View Single Post
#
7
02-07-2017, 21:09
BlackWhite
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
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
The Following User Says Thank You to BlackWhite For This Useful Post:
niculaita
 (02-08-2017)
BlackWhite
View Public Profile
Find all posts by BlackWhite