You are on page 1of 2

1. Add 00110011, 10111111, and 01100011. These are signed numbers.

Sum is 01010101
2. 2. Subtract 01000111 from 01011000:

2’s complement of subtrahend 01000111 is 10111001

01011000 (88 in decimal)-01000111 (71 in decimal) = 00010001 (17 in decimal)

3. Multiply 01100001 by 00000110 using the direct addition method:

00000110 = 2^2+2^1 = 6, which is how many times we need to add the number

01100001*00000110 = 1001000110 =2^9+2^6+2^2+2^1+=582

4. Verify the multiplication is correct by converting to decimal numbers and performing the
multiplication of 01010011*11000101:
01010011=2^0+2^1+2^4+2^6=83
11000101=2^(-7)+2^6+2^2+2^0=-59
Taking into consideration that 4897 is negative, it is -1001100100001
So the 2’s complementary is 10110011011111 just as in the lecture!

5. Verify the division is correct by converting to decimal numbers and performing the division of
01100100 by 00011001:
01100100 = 2^6+2^5+2^2 = 100
00011001 = 2^4+2^3+2^0 = 25
100/25=4
Residue
4/2=2 0
2/2=1 0
1/2=0 1
Therefore, 4 = 100 (binary),
01100100/00011001=100 which is the same number as in the lecture!

You might also like