Question

In: Computer Science

Add 011 0011 to 010 1100 and show the V and C bits (seven bits and...

Add 011 0011 to 010 1100 and show the V and C bits (seven bits and show work)

Solutions

Expert Solution

V = 1
C = 0
because there was overflow and no carry

Explanation:
-------------
Adding 0110011 and 0101100 in binary
    0110011
    0101100
------------
 (0)1011111
------------
Sum does not produces a carry
So, sum of these numbers in binary is 1011111

Verification
---------------
first = 0110011
since left most bit is 0, this number is positive
so, we can directly convert this into a decimal value
Converting 110011 to decimal
110011
=> 1x2^5+1x2^4+0x2^3+0x2^2+1x2^1+1x2^0
=> 1x32+1x16+0x8+0x4+1x2+1x1
=> 32+16+0+0+2+1
=> 51
Answer: 51

second = 0101100
since left most bit is 0, this number is positive
so, we can directly convert this into a decimal value
Converting 101100 to decimal
101100
=> 1x2^5+0x2^4+1x2^3+1x2^2+0x2^1+0x2^0
=> 1x32+0x16+1x8+1x4+0x2+0x1
=> 32+0+8+4+0+0
=> 44
Answer: 44

sum = 1011111
since left most bit is 1, this number is negative number.
so, follow these steps below to convert this into a decimal value.
I. first flip all the bits. Flip all 0's to 1 and all 1's to 0.
   1011111 is flipped to 0100000
II. Add 1 to above result
0100000 + 1 = 0100001
III. Now convert this result to decimal value
Converting 100001 to decimal
100001
=> 1x2^5+0x2^4+0x2^3+0x2^2+0x2^1+1x2^0
=> 1x32+0x16+0x8+0x4+0x2+1x1
=> 32+0+0+0+0+1
=> 33
Answer: -33
51+44 must be 95
This is not correct since we can verify that 51+44 not equals -33
So, there was an overflow.

Related Solutions

Add 111 0011 to 100 1100 and show the V and C bits (seven bits)
Add 111 0011 to 100 1100 and show the V and C bits (seven bits)
Add binary numbers 0 1010 1100+ 0 0011 1010 a. 0 1110 0110,NZVC= 0000 b. 1...
Add binary numbers 0 1010 1100+ 0 0011 1010 a. 0 1110 0110,NZVC= 0000 b. 1 0101 1011,NZVC= 1001 c. 0 0110 1111,NZVC= 0011 d. 1 0000 0110,NZVC= 1010 e. None of the above
10. Convert 101 1010 (seven bits) into a signed decimal (show work) 15. Give the value...
10. Convert 101 1010 (seven bits) into a signed decimal (show work) 15. Give the value of 011 1101 and C=0 with ROL (seven bits, show work) 16. Give the signed decimal value of 93A (12 bits, show work) 18. Give the binary equivalent of the decimal number of 13.57 (assume fixed point, no more than 6 bits left and right of the decimal point)
Rotating bits in C This rotates bits to the left which means the bits that were...
Rotating bits in C This rotates bits to the left which means the bits that were shifted off are then moved to the right side. I need B5DE1FAA to become 7787EAAD uiOrig = B5DE1FAA k = 6 unsigned int rotateLeft(unsigned int uiOrig, int k){ }
Give the signed decimal value of D03 (12 bits, show work)
Give the signed decimal value of D03 (12 bits, show work)
Using C (not C++): setFirst - returns value with n upper bits set to 1 and...
Using C (not C++): setFirst - returns value with n upper bits set to 1 and 32-n lower bits set to 0 * You may assume 0 <= n <= 32 * Example: setFirst(4) = 0xF0000000 * Legal ops: ! ~ & ^ | + << >> (NO IF OR FOR LOOPS) * Max ops: 10 * Rating: 2
Show that if V is finite-dimensional and W is infinite-dimensional, then V and W are NOT...
Show that if V is finite-dimensional and W is infinite-dimensional, then V and W are NOT isomorphic.
Suppose T ∈ L(V) a) Show that V = ImT0 ⊃ ImT1 ⊃ ImT2 ⊃ ......
Suppose T ∈ L(V) a) Show that V = ImT0 ⊃ ImT1 ⊃ ImT2 ⊃ ... b) Show that if m ≥ 0 is such that ImTm = ImTm + 1, then ImTm + k =ImTm + k + 1 for all k ≥ 0. c) Show that if n = dim V, then ImTn = ImTn + 1 = ImTn + 2 = ....
Show clearly, with calculation steps, how to make 200ml of 90% and 80%(v/v) ethanol, respectively. Show...
Show clearly, with calculation steps, how to make 200ml of 90% and 80%(v/v) ethanol, respectively. Show clearly, with calculation steps, how to make 70% (v/v) ethanol + 1% (v/v) acetic acid (final volume = 200ml).
1. Give the signed decimal value of A93 (12 bits, show work)
1. Give the signed decimal value of A93 (12 bits, show work)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT