Ask Question
26 August, 10:03

Assume 151 and 214 are signed 8-bit decimal integers stored intwo's complement format. Calculate 151 214 using saturating arithmetic. Th eresult should be written in decimal. Show your work.

+2
Answers (1)
  1. 26 August, 13:04
    0
    The result is - 63

    Explanation:

    First, we discover the Binary value of 151 which is 10010111.

    1 = most significant bit and it represents the sign as negative.

    Two's compliment of 10010111, is calculated by adding 1 to one's compliment. We get 01101001 which is 105 in decimal.

    Therefore the value of A (the first part) is - 105.

    Second, the binary value of 214 = 11010110.

    1 = most significant bit and it represents the sign as negative.

    Two's compliment of 11010110, is calculated by adding 1 to one's compliment. We get 00101010 which is 42 in decimal.

    Therefore, the value of B (the second part) is - 42.

    Simplify further,

    A - B = - 105 - (-42)

    = - 105 + 42

    = - 63

    Therefore, the result is - 63,
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Assume 151 and 214 are signed 8-bit decimal integers stored intwo's complement format. Calculate 151 214 using saturating arithmetic. Th ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers