{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Ifyouusetheformulayouget2nwhichrequiresn1bits

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: e n rightmost bits for answer. **We’re assuming unsigned numbers here. If (1000)2 was signed, it would be considered a ‐8 instead of a +8. It would also be necessary to extend the leftmost bit when resizing. 2) Finding the 2’s Complement of a number is to perform the operation 2n‐x where x is the original number and n is the number bits used to store the number. Two’s Complement Representation is a hardware efficient scheme for supporting positive and negative numbers where finding the 2’s Complement is equivalent to multiplying by ‐1. Positive numbers are the same as unsigned binary (so long as the leftmost bit is ‘0’). Negative numbers are the 2’s Complement of the positive numbers. Note that finding the 2’s Complement of a number does not necessarily put it in 2’s Complement Representation. 3) 1.7) a) + + + + + (21)10 0 1 0 1 0 1 (11)10 + 0 0 1 0 1 1 (32)10 1 0 0 0 0 0 (10000)2s = (‐32)10 ≠ (32)10 Overflow must have occurred. Also notice that the 2 leftmost carry bits at the top are different. This only happens during overflow. b) 1 0 1 1 1 (‐14)10 (‐0 0 1 1 1 0) 1 1 0 0 1 0 (‐32)10 + (‐1 0 0 0 0 0) = + 1 0 0...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern