so to do binary subtraction, for a-b, you invert b and add one, then add a and b'
so 0011 (3) - 0110 (6) = 0011 + 1010 = 1101
then if the answer should be negative, invert and one again
so 1101 becomes 0011
the first bit determines the sign
1 is positive, 0 is negative
so 0011 - 0110 = 0011