Given that , the 151 and 214 are signed 8 bit decimal integers that are stored in a 2’s complement format.
Convert each of decimal numbers to binary:
151 = 100101112
214 = 110101102
Now take 2’s Complement for both the numbers:
Convert all the 1s to 0s and 0s to 1s . Then add 1 to the converted number.
151 = 100101112
2's Complement = 01101000
Add 1 = 01101000 + 1
2's Complement = 01101001
214 = 110101102
2's complement = 00101001
Add 1 = 00101001 + 1
2's complement = 00101010
Now, convert them in to decimal numbers:
151= -105
214=42
For , subtraction use the converted decimal numbers:
-105+42 = -63
Therefore, the result of 151-214=-63