I have two numbers in Two's complement code A and B, where both of them are positive.
I need to subtract B from A ( A - B).
How can I do this when I can do the following:
Perform shifts, invert, +1, -1, SUM, XOR.
I think I should convert B from a positive number to a negative and them sum A and B, but I got not idea how to do that.
I need to subtract B from A ( A - B).
How can I do this when I can do the following:
Perform shifts, invert, +1, -1, SUM, XOR.
I think I should convert B from a positive number to a negative and them sum A and B, but I got not idea how to do that.