Quiz # 1 --- Assembly Fall 2006
Name 2 embedded system appliation areas.
What is a popular language for writing embedded applications?
What is the range of 22-bit
signed
integers?
You may use 2
x
notation in your answer.
What is the range of 22-bit
unsigned
integers?
You may use 2
x
notation in your answer.
Why are might you choose a fixed-point format over a floating point format for an embedded application?
Convert the value 5.125 into 8.8 fixed-point format.
Convert the value -5.125 into 8.8 fixed-point format.
Convert the value -5.125 into single precision float format.
Hint: the bias is 127.
S
E
7
E
6
E
5
E
4
E
3
E
2
E
1
E
0
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?
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; }