Sid M. answered 02/24/20
Senior Software Engineer, with BS, and almost MS, in Computer Science
Hello, Isaac C.
In 2s compliment, 8-bit binary, the (decimal) value 25 is 00011001, and 68 is 01000100. To subtract 68 (01000100) from 25 (00011001), we can take the 2s compliment of 68 (01000100), which is:
~(01000100) + 1 = 10111011 + 1 = 10111100 (which, in decimal, as a signed, 8-bit value, is -68)
and add it to 25 (00011001), so:
Anthony F.
Bravo! Two's complement is very relative to binary arithmetic.07/12/20