This assignment is due in class on 8 September or may be uploaded to Homework 3 on moodle by 2:00 PM on 8 September.
Problem 1
Below are three addition problems. Convert the numbers in these problems into 8-bit twos-complement and then add as 8-bit twos-complement. Some of these additions will result in overflow.
Indicate the result of each addition and note if the addition results in overflow.
- 100 + 60
- 100 + -60
- -60 + -60
Problem 2
Below are two addition problems. Convert the numbers in these problems into 8-bit unsigned numbers and then add as 8-bit unsigned numbers. Some of these additions will result in overflow.
Indicate the result of each addition and note if the addition results in overflow.
- 100 + 60
- 200 + 200
Problem 3
Represent each of the following decimal point numbers as binary point numbers? Each has an exact reprentation.
- 3.375
- 2.15625
Problem 4
The number 0.57 cannot be represented exactly in binary point number with fractional bits. However, it can be approximated. What is the best approximation of this number using 8 factional binary bits.