**CMSC 311- Computer Organization**

Fall 1995 - Assignment #4

*Due (at the beginning of class) Thursday, October 5*

- From Mano 2-12.
- From Mano 2-15.
- From Mano 2-18.
- Convert the following decimal (base 10) numbers to binary:
- 47
- 19
- 255
- 1024
- 0

- Convert the following hexadecimal numbers to binary and then
to octal:
- 3F2
- 77
- 3F
- 101
- A

- Perform the following additions by first converting the decimal
numbers to 8-bit two's complement notation, and then adding. If
the addition results in an overflow condition (assuming the addends
and result are stored in 8-bit registers), indicate that an overflow
exists.
- 26 +45
- 30 + 100
- -41 + (-99)
- 45 + (-52)
- (-91) + 117

- Design a circuit to convert the three-bit Gray code to the standard binary code. For example, if the input to the circuit is 111, the output should be 101, since 111 is the Gray code representation of 5, while 101 is the standard binary representation of 5.