1) a. What is the value in decimal of the most negative 8-bit 2’s complement int
ID: 3907328 • Letter: 1
Question
1)
a. What is the value in decimal of the most negative 8-bit 2’s complement integer?
b. What is the value in decimal of the most positive 8-bit unsigned integer?
c. Write out in hex the 16-bit result of adding the following 2’s complement numbers: 0xFA25 +0xB705. You have to show the steps.
d. Does the add operation in (c) resultsin overflow?
Explanation / Answer
a. What is the value in decimal of the most negative 8-bit 2’s complement integer? > -2^7 => -128 b. What is the value in decimal of the most positive 8-bit unsigned integer? > 2^7 - 1 => 128 - 1 => 127 c. Write out in hex the 16-bit result of adding the following 2’s complement numbers: 0xFA25 +0xB705. You have to show the steps. 0xFA25 => 1111 1010 0010 0101 0xB705 => 1011 0111 0000 0101 ---------------------------------- 1 1011 0001 0010 1010 ---------------------------------- d. Does the add operation in (c) resultsin overflow? > Yes
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.