Question: Two integers A and B are stored in twos complement format. Show how B is subtracted from A. (-25) - (+15) = (-40). Hint: Let
- 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
Get step-by-step solutions from verified subject matter experts
