This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: Last updated: 11/4/2006 ECEn/CS 224 Chapter 8 Homework Solutions 8.1. Convert the following to unsigned binary, add the numbers together in binary, and check your result by converting it back to base10: 4 + 5 =?. Use four bits for your operands and result. 0 1 0 0 4 + 0 1 0 1 + 5   1 0 0 1 9 8.2. Repeat the above for 8 + 5 =?. 1 0 0 0 8 + 0 1 0 1 + 5   1 1 0 1 1 3 8.3. Repeat the above for 12 + 15 =? but use five bits for the result. 1 1 0 0 12 + 1 1 1 1 + 15   1 1 0 1 1 27 8.5. Repeat the three additions from the previous 3 problems but for 2s complement. Use four bits for the operands if possible, use five bits if needed. In each case first do the addition and compute a result with the same number of bits as the operands. Then, determine which operations overflowed and repeat those after first signextending the operands by one bit position....
View Full
Document
 Spring '10
 Schultz

Click to edit the document details