Convert the following decimal values to 8-bit 2's complement representation(1*2 Marks)i. -92ii. -36
Question
Convert the following decimal values to 8-bit 2's complement representation
(1*2 Marks)
i. -92
ii. -36
Solution
i. -92 in 8-bit 2's complement representation:
Step 1: Convert 92 to binary. The binary equivalent of 92 is 1011100.
Step 2: Make it 8-bit by padding zeros at the beginning. So, 92 becomes 01011100.
Step 3: Now, find the 1's complement of the binary number. The 1's complement of 01011100 is 10100011.
Step 4: Add 1 to the 1's complement to get the 2's complement. So, the 2's complement of 10100011 is 10100100.
So, -92 in 8-bit 2's complement representation is 10100100.
ii. -36 in 8-bit 2's complement representation:
Step 1: Convert 36 to binary. The binary equivalent of 36 is 100100.
Step 2: Make it 8-bit by padding zeros at the beginning. So, 36 becomes 00100100.
Step 3: Now, find the 1's complement of the binary number. The 1's complement of 00100100 is 11011011.
Step 4: Add 1 to the 1's complement to get the 2's complement. So, the 2's complement of 11011011 is 11011100.
So, -36 in 8-bit 2's complement representation is 11011100.
Similar Questions
Convert the following decimal values to a 16-bit 2's complement representation. (1*2Marks)i. -2342ii. 234
Convert each pair of decimal numbers to binary and add using 2's complement-110 and -84
Compute the following decimal arithmetic operation using 8-bit 2's complement: i) t5- 7; ii) -10+6 ; iii) -23-7.
Compute the following decimal arithmetic operation using 8-bit l's complement: \,z i) -16+78; ii) -e0-8; iii) 13-26
erform six bit signed two’s complement arithmetic operation on (−15)10 +(+65)10
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.