{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

EE319K_EXAM1_B_SOL_2009

# EE319K_EXAM1_B_SOL_2009 - EE319K Fall 2009 Exam 1B...

This preview shows pages 1–2. Sign up to view the full content.

EE319K Fall 2009 Exam 1B Solution Page 1 (5) Question 1. Give the 8-bit binary representation of the value -88. -128 yes -88+128 = 40 64 no 40 32 yes 40-32 = 8 16 no 8 8 yes 8-8 = 0 4 no 0 2 no 0 1 no 0 1010,1000 (5) Question 2. Which of the following techniques can solve the overflow problem? D) Implement a ceiling and floor. F) Promote the numbers and perform the addition with this new precision. (5) Question 3. Consider the following two instructions (yes it is silly to operate on one signed and one unsigned number) ldab #-10 subb #200 What will be the value of the overflow (V) bit? Convert to signed -10 and -56 Perform operation -10 - -56 = 46 Answer fits so V=0 What will be the value of the carry (C) bit? Convert to unsigned 246 and 200 Perform operation 246 - 200 = 46 Answer fits so C=0 What will be the value of the negative (N) bit? Answer is 46 so N=0 (5) Question 4. Consider the result of executing the following three 9S12 assembly instructions. ldaa #100

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 2

EE319K_EXAM1_B_SOL_2009 - EE319K Fall 2009 Exam 1B...

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

View Full Document
Ask a homework question - tutors are online