chap08 - Last updated: 11/4/2006 ECEn/CS 224 Chapter 8...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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 base-10: 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 sign-extending the operands by one bit position....
View Full Document

Page1 / 3

chap08 - Last updated: 11/4/2006 ECEn/CS 224 Chapter 8...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online