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.
- -91
- -34
- 10111011
- -76
- DIVIDE -76 by 2
- -100
- MULTIPLY -100 by 2
- -15
- ADD -100 and -15
- 10000000
- 10011000
- 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
- Passing parameters using registers.
- 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.
- Name two functions of the procedure prolog
- Name two functions of the procedure epilog