## EE 308

Homework Assignment 2
Due Jan. 24, 1996

1. Problem 1-2 (a) through (e) from Miller.
2. Problem 1-5 from Miller.
3. Consider the following hexadecimal 8-bit numbers as unsigned. Find their decimal equivalents:
1. 0x57
2. 0xD3
3. 0x02
4. 0xFE
4. Repeat Problem 3, considering the numbers as signed.
5. 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.
1. 0x23 + 0x3C
2. 0x3A + 0x61
3. 0x92 + 0x83
4. 0xD2 + 0x61
6. 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.
7. Do Problem 1-11 from Miller.
8. Do Problem 1-12 from Miller.
9. Subtract the following 8-bit numbers. Was a borrow generated? Was an overflow generated?
1. 0x23 - 0x57
2. 0x3F - 0x9A

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