Quiz # 1 --- Assembly Fall 2004
-
Most new embedded designs are based on ____________- bit microprocessors.
-
Most new embedded designs are programmed in ____________.
-
What is the range of 24-bit signed integers? You may use 2x notation in your answer.
-
What is the range of 24-bit unsigned integers? You may use 2x notation in your answer.
-
Why might you choose a fixed-point format over a floating point format for an embedded application?
-
Convert the value 3.625 into 4.4 fixed-point format.
-
Convert the value -3.625 into 4.4 fixed-point format.
-
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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
Almost all modern computers use 2's compliment to represent signed numbers. Why?
-
Can subtracting two signed numbers with the same sign ever result in a (signed) overflow?