# 218q2s - 0111 BCD 1000 1011 carry-out = 1 0110< result is...

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

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
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 <- 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 10’s complement form (12-bits). First, obtain the 9’s complement form using your answer in part 3 and self-complementing property of the code. Then obtain the 10’s complement from the 9’s complement. -66 (in 2421) = 1111 0011 0100 1 st : 9’s complement by bit inversion of the answer in part 3: 1111 0011 0011 = 933 2 nd : 10’s complement by incrementing 9’s complement: + 1 1111 0011 0100 = 934...
View Full Document

## This note was uploaded on 03/21/2010 for the course ESE 218 taught by Professor Donetsky during the Spring '08 term at SUNY Stony Brook.

Ask a homework question - tutors are online