EE319K_EXAM1_B_SOL_2009

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

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/03/2010 for the course EE 319K taught by Professor Bard during the Spring '08 term at University of Texas at Austin.

Page1 / 2

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

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

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