MIME-Version: 1.0 Server: CERN/3.0 Date: Monday, 16-Dec-96 23:19:07 GMT Content-Type: text/html Content-Length: 1345 Last-Modified: Monday, 13-Mar-95 14:33:34 GMT CS 314: Homework Number 3

Homework Number 3

Date Assigned: February 14, 1995
Date Due: February 21, 1995

To submit your answer

Drop by the consulting office (305 Upson) during consulting hours to get your homework graded and recorded.

Problem 1

Convert these numbers into 8 bit two's complement form or back into decimal. Do all algebraic manipulation in two's complement. All binary numbers are 8 bits.
  1. -91
  2. -34
  3. 10111011
  4. -76
  5. DIVIDE -76 by 2
  6. -100
  7. MULTIPLY -100 by 2
  8. -15
  9. ADD -100 and -15
  10. 10000000
  11. 10011000
  12. MUTIPLY -5 by -8

Problem 2

For each of the following parameter passing strategies, state (in one sentence) a limitation/disadvantage of the strategy and (in another sentence) what the procedure can do, if anything, to compensate for the limitation
  1. Passing parameters using registers.
  2. Passing parameters in a fixed global address

Problem 3

Give a short answer to each of the following questions. Excessively verbose answers will result in lost points.
  1. Name two functions of the procedure prolog
  2. Name two functions of the procedure epilog