## EE 308

**Homework Assignment 2 **

Due Jan. 24, 1996

- Problem 1-2 (a) through (e) from Miller.
- Problem 1-5 from Miller.
- Consider the following hexadecimal 8-bit numbers as unsigned. Find their
decimal equivalents:
- 0x57
- 0xD3
- 0x02
- 0xFE

- Repeat Problem 3, considering the numbers as signed.
- Consider the hexadecimal 8-bit numbers below as unsigned. Do the
indicated additions, and find the 8-bit result. Determine if a carry resulted.
Convert the operands and results to decimal numbers, and indicate if the
results are correct.
- 0x23 + 0x3C
- 0x3A + 0x61
- 0x92 + 0x83
- 0xD2 + 0x61

- Consider the hexadecimal 8-bit numbers in Problem 5 as signed. Do the
indicated additions, and find the 8-bit result. Determine if an overflow
resulted. Convert the operands and results to decimal numbers, and indicate
if the results are correct.
- Do Problem 1-11 from Miller.
- Do Problem 1-12 from Miller.
- Subtract the following 8-bit numbers. Was a borrow generated? Was an
overflow generated?
- 0x23 - 0x57
- 0x3F - 0x9A

*
Bill Rison,
<rison@ee.nmt.edu >
*