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

Info iconThis 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:
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/15/2011 for the course ECE 2504 at Virginia Tech.

Page1 / 2

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

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