Ask your own question, for FREE!
Computer Science 17 Online
mhchen:

Negating a number in Assembly Code Say I have ```c long sum = -10; if (sum<0) sum = -sum; ``` Ignore the if-condition, just focus on the sum=-sum part. How do I make that number negative? Pretend sum is in %rax

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!