What are twos complement numbers of the following 16bit numb
What are two\'s complement numbers of the following 16-bit numbers?
1.0x3f9d 2.0x0AA9 3.0xf23a
What are two\'s complement numbers of the following 16-bit numbers?
1.0x3f9d 2.0x0AA9 3.0xf23a
1.0x3f9d 2.0x0AA9 3.0xf23a
Solution
1. 0011111110011101
2\'s complement = 1\'s complement + 1
= 1100000001100010 + 1
= 1100000001100011
2. 0000101010101001
= 1111010101010110 +1 =
1111010101010111
3. 1111001000111010
= 0000110111000101 + 1
= 0000110111000110
