I am revising for an exam i have in a weeks time. I have an example question which i have answered but i am unsure if it is correct. Could someone please verify my answer for me and explain where iv gone wrong if it was incorrect.
Here is the question: Consider two binary variables in sign-magnitude notation: A = 011111 and B = 000001. Showing all steps involved, perform the following operations in binary format (i.e., do not convert from binary to another radix in order to obtain the result). Assume you only have six bits available for the answers.
A-B Using two's complement.
Here is my answer: Use two's complement on B B = 000001 flip and add 1
111110
+000001
--------
111111
Then A + two's complement B
011111
+111111
-------
011110
Final answer: 011110