computer architecture 1 Add the following numbers using sign

computer architecture


1. Add the following numbers using signed, 2s complement (show your work): oIcoO b. -10 + 12 c. 9+ (-12) Convert the following signed 2s complement numbers into 1\'s complement and Base 10: a. 100111 b. 100000

Solution

1) 8 +(-14)

8 is positive number and binary represenation is 1000

-14 is negative number and to represent it using two\' s complement

first get the binary represenation of 14 which 1110

now take its one\'s complement which is inversion of bits i.e 0001

now add 1 to it 0001+1 which becomes 0010

Now add binary of 8 + binary of -14

1000 + 0010

1010 (this is two complement representation of -6)

b) -10 + 12

Binary of -10 is 0110 (by two\'s complement as explained in first part)

Binary of 12 - 1100

Now add these 0110 + 1100

0010 (which is binary representation of 2)

computer architecture 1. Add the following numbers using signed, 2s complement (show your work): oIcoO b. -10 + 12 c. 9+ (-12) Convert the following signed 2s c

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site