hw3sol - C-355 Solutions to HW # 3 Problem 9.7 r = 10, n =...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
C-355 Solutions to HW # 3 Problem 9.7 r = 10, n = 5, N = 13250 So 10’s complement of 13250 is 10 5 - 13250 = 86750 Problem 9.8 72530 – 13250 = 72530 + 10’s complement of 13250 = 72530 + 86750 = 159280 Since carry arises the answer is obtained by ignoring it, namely, 59280 Problem 9.10 In signed arithmetic, carry should be ignored. Only overflow needs to be checked a) 0000 0110 (6) + 0000 1101 (13) ------------------------------------- 0001 0011 (19) b) 1111 1010 (-6) + 0000 1101 (13) ------------------------------------- 0000 0111 (7) ignore carry c) 0000 0110 (6) + 1111 0011 (-13) -------------------------------------- 1111 1001 (-7) d) 1111 1010 (-6) + 1111 0011 (-13) -------------------------------------- 1110 1101 (-19) ignore carry There is no overflow in any of these. In (a) two positives add up to positive. In (d) two negatives add up to negative. In (b) and (c) the numbers being added are of opposite signs.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Problem 9.11 Unsigned subtraction is performed as follows: A – B = A + 2’s complement of B
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/17/2012 for the course ECEC 355 taught by Professor Billmongan during the Spring '11 term at Drexel.

Page1 / 3

hw3sol - C-355 Solutions to HW # 3 Problem 9.7 r = 10, n =...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online