Quiz # 1 --- Assembly Fall 2006

  1. Name 2 embedded system appliation areas.
  2. What is a popular language for writing embedded applications?
  3. What is the range of 22-bit signed integers? You may use 2x notation in your answer.
  4. What is the range of 22-bit unsigned integers? You may use 2x notation in your answer.
  5. Why are might you choose a fixed-point format over a floating point format for an embedded application?
  6. Convert the value 5.125 into 8.8 fixed-point format.
  7. Convert the value -5.125 into 8.8 fixed-point format.
  8. Convert the value -5.125 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. Using the words "machine epsilon," explain why this loop will probably not stop:
    
    double x=0.0;
    
    while (x != 1.0) {
    
      x=x+1.0/3.0;
    
    }