2. Signed 2's Compliment numbers arithmetic For the following signed 2's compliment values form actions (indicate overflow): A = 0xFF
Signed 2's Compliment numbers arithmetic
For the following signed 2's compliment values
A = 0xFF
B = 0x00
Perform actions (indicate overflow):
1)A+B=0xFF+0x00
First, find the 2's complement of the second number 0000 0000. So, for finding 2's complement, change all 0 to 1 and all 1 to 0 or find the 1's complement of the number 1111 1111. The 1's complement of the number 1111 1111 and add 1 to the LSB of the result 1111. So the 2's complement of number 1111 1111 is 1111 1111+1= 1 0000 0000
Add both the numbers, i.e., 1111 1111+ 1 0000 0000
1111 1111
+1 0000 0000
1 0000 0000
_______________________
By adding both numbers, we get the end-around carry 1. We discard the end-around carry. So, the addition of both numbers is 0 0
Step by step
Solved in 2 steps