Question: Two integers A and B are stored in twos complement format. Show how B is subtracted from A. (-25) - (+15) = (-40). Hint: Let

  1. Two integers A and B are stored in twos complement format. Show how B is subtracted from A. (-25) - (+15) = (-40).

Hint: Let A = (-25) and B = (+15) and show how to do (A B) in twos complement format. Use 8-bits to represent each number in binary.

Verify that your final answer in binary is equal to -40 in decimal. Show your work?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!