Computer Science 281
Fourth Exercise Set
Purpose
Due: In class Monday, March 4
Please work problems 4, 5, 6, 7, 9, 10, and 12 on pages 199 - 200 of Tanenbaum
In addition, work out
Answers should be given in hex. You can use the program discussed in class to check your representation of -104. To check your work on the other two problems, write a C program with the following statements
float x; x = 25.25; x = -0.125
and examine the assembly language code generated by gcc. It is strongly recommended that you do not use this technique to work the homework exercise, since these are likely exam questions.