Quiz # 1 --- Assembly Fall 2004

  1. Most new embedded designs are based on ____________- bit microprocessors.
  2. Most new embedded designs are programmed in ____________.
  3. What is the range of 24-bit signed integers? You may use 2x notation in your answer.
  4. What is the range of 24-bit unsigned integers? You may use 2x notation in your answer.
  5. Why might you choose a fixed-point format over a floating point format for an embedded application?
  6. Convert the value 3.625 into 4.4 fixed-point format.
  7. Convert the value -3.625 into 4.4 fixed-point format.
  8. Convert the value -3.625 into single precision float format. Hint: the bias is 127.
    S E7 E6 E5 E4 E3 E2 E1 E0 M-1 M-2 M-3 M-4 M-5 M-6 M-7 M-8 M-9 M-10 M-11 M-12 M-13 M-14 M-15 M-16 M-17 M-18 M-19 M-20 M-21 M-22 M-23
                                                                   
  9. Almost all modern computers use 2's compliment to represent signed numbers. Why?
  10. Can subtracting two signed numbers with the same sign ever result in a (signed) overflow?