Professional Documents
Culture Documents
Tutorial 2
From Lecture 2 (Data Representation – Part2)
2. If 1001 0110 is a binary number in excess-127 form, what is the decimal number?
Answer: 23
Answer: -105
8. Using two’s complement form with 8 bits, perform the following arithmetic.
a. Add 34 and 27
34 0010 0010
27 0001 1011
---------
0011 1101 = 61
b. Add 78 and 64
78 0100 1110
64 0100 0000
---------
1000 1110 = Overflow
Page 1
ITDR2102: Computer Organization – Tutorial Answers
c. Subtract 45 from 78
78 0100 1110
-45 1101 0011
-----------
1 0010 0001 = 33 (Ignore the 9th bit)
Page 2
ITDR2102: Computer Organization – Tutorial Answers
Page 3