The value of the two-byte two’s complement value 0xFF72 is:
A. -28
B. -84
C. -128
D. -142
Hey guys I'm having trouble with this question. I want to be able to solve this but I was hoping if there was a source or if someone could tell me step by step on how to solve this.
There are 2 common ways to negate a signed number in 2's compliment.
Technique A) Invert all bits, then add 1
Technique B) Subtract the number from 1+ the maximum possible. In this case, since it's a 2-byte number, 1 + the maximum is 0x10000. So 0x10000 - 0xFF72
Once you do that, you have the negated number, which you can convert to decimal.