218q2s - 0111 BCD 1000 1011 + carry-out = 1 0110...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ESE218 Quiz 2 September 18, 2008 Name _____________________________ ID_______________________ 1. Perform subtraction of 3-digit decimal numbers with sign (+14) – (+77) by addition of the 10’s complement of 077. Use decimal digits. Explain how to determine the sign and magnitude of the result. +14 + (- 77) = 014 +923 937 -> the sign is negative because of 9 in the most significant digit position. Thus, the magnitude is in 10’s complement form, it can be obtained by 10’s complementing the result: 1000 - 937 63 < -magnitude 2. Present two unsigned decimal number 14 and 77 using BCD codes . Perform bit-by- bit addition of these numbers. 14 = 0001 0100 BCD + 77 = 0111
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 0111 BCD 1000 1011 + carry-out = 1 0110 &lt;- result is not a BCD code 1001 0001 9 1 3. Present 3-digit decimal number with sign + 66 using a 2421 code (the answer is 12-bit long). +66 10 = 0000 1100 1100 2421 4. Obtain the 2421 code for -66 10 in the 10s complement form (12-bits). First, obtain the 9s complement form using your answer in part 3 and self-complementing property of the code. Then obtain the 10s complement from the 9s complement. -66 (in 2421) = 1111 0011 0100 1 st : 9s complement by bit inversion of the answer in part 3: 1111 0011 0011 = 933 2 nd : 10s complement by incrementing 9s complement: + 1 1111 0011 0100 = 934...
View Full Document

Ask a homework question - tutors are online