Two’s Complement

For this assignment you will manually encode some numbers using two’s complement representation, and perform some arithmetic using two’s complement numbers. As with the last assignment, turn this assignment in on paper and be sure to show your work.

See sections A.4 and A.5 in Appendix A in the book for help.

Converting to Two’s Complement

Problem 1: Convert the following decimal numbers to 8-bit signed two’s complement binary numbers. Show all your steps:

Subtraction by Two’s Complement

Problem 2: To perform binary subtraction, we can convert the subtrahend (the number being subtracted) to its two’s complement and then add it to the minuend (the number being subtracted from). Perform the following subtractions by converting the numbers to 8-bit binary and then follow this method. Show all your steps: