What is the decimal value of 0 times 12 assuming unsigned fo
What is the decimal value of 0 times 12, assuming unsigned format? Show your work: What is the decimal value of 0 times FE, assuming 2s-compliment form? Show your work: What is the hex value of 0 times 12 | 0 times 34? Show your work: What is the hex value of 0 times 56 & 0 times 78? Show your work:
Solution
1. 0x12 = 0001 00102 = 21 + 24 = 2 + 16 = 1810.
2. 0xFE = 1111 11102. Here the leading bit is 1, and as this is a signed number, and a leading 1 represents a negative number. So, 2\'s complementing it will give the value of: 0000 0001 + 1 = -0000 00102 = 21 = -210.
3. 0x12 | 0x34 = 0001 00102 | 0011 01002 = 0011 01102 = 21 + 22 + 24 + 25 = 2 + 4 + 16 + 32 = 5410 = 0x36.
4. 0x56 & 0x78 = 0101 01102 & 0111 10002 = 0101 00002 = 24 + 26 = 16 + 64 = 8010 = 0x50.
