HW2 - ECE 2504 Int roduction to Computer Engineering Summer...

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

View Full Document Right Arrow Icon
ECE 2504 Introduction to Computer Engineering, Summer I 2010 Homework 2 Due date: 28 May, 11:55pm Show all work. 1. (4 pts) Find the decimal equivalent of the following two’s complement numbers: 1001101 10001010 01001101 111110011 2. (6 pts) Perform the subtraction of the following unsigned decimal numbers by taking the 10’s complement of the subtrahend: 7250 – 3652 9999-3652+1= 6348 + 7250 = 13598, drop the carry = 3598 1783 – 5360 9999-5360+1 = 4640 + 1783 = 6423, no carry = 9999-6423+1= -3577 35 – 65: 99-65+1 = 35 + 35 = 70, no carry = 99-70+1 = -30 3. (8 pts) Perform the subtraction of the following unsigned binary numbers by taking the 2’s complement of the subtrahend: 11011 – 10010: 11011+01110 = 101001, drop end carry = 01001 10111 – 0110: 10111+11010 = 110001, drop end carry = 10001 1000 – 101110: 001000+010010 = 011010, no end carry = neg 100110 1001010 – 1001010: 1001010 + 0110110 = 10000000, drop end carry = 0000000 4. (8 pts) Perform the addition of the following 8-bit two’s complement numbers: 10100101 + 00101110: = 11010011 00110010 + 00110110: = 01101000 01011010 + 10110110: 100010000, drop the carry, = 00010000 11001011 + 11111010: 111000101, drop the carry, = 11000101
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the 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