Question

The following 5 questions use two's complement representation. You MUST use 5 (five) bit binary. (ex....

The following 5 questions use two's complement representation.  
You MUST use 5 (five) bit binary.  (ex. 000012)  
DO NOT Extend beyond 5 bits.
A = +13          B = +4             C = -6

a.) A - B = _______________ 2       

b.) A - B results in overflow. true or false?

c.)C + A = _____________ 2

d.)C + A results in overflow. true or false?

e.) C - A = ______________________2

f.) C - A results in overflow. true or false?

g.)B + A = ______________________2

h.) B + A results in overflow. true or false?

i.) B - A = _______________________2

j.) B - A results in Overflow. true or false?

Homework Answers

Answer #1

Given that the number system is five bit binary 2's complement.

A = +13 = (01101)2

B = +4 =  (00100)2

C = -6 =  (11010)2

a) A- B = (01001)2 = +9

b) There is no overflow, Since Cin = Cout

c) C+A = (00111)2 = +7

d) There is no overflow, Since Cin = Cout

e) C-A = (101101)2 = -19

f) There is overflow, Since Cin ≠ Cout.

g) B+A = (010001)2 = +17

h) There is overflow, Since Cin ≠ Cout

i) B - A = (10111)2 = -9

j) There is no overflow, Since Cin = Cout

Note:

Cin is nothing carry generated by (MSB-1) th bits of both operands.

Cout is nothing carry generated by (MSB) th bits of both operands.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
A). Convert following decimal integers to 8-bit two's complement binary numbers using any method . Explain...
A). Convert following decimal integers to 8-bit two's complement binary numbers using any method . Explain why, If decimal number cannot be represented with 8 bits. a. -46 b. -63 c. 118 d. -128 e. 128 B). Perform following operations by converting the decimal numbers to 8-bit two’s complement binary. Check results by converting final result to decimal a. 94-53 b. 15–84
Assuming nine-bit 2’s complement representation, convert the decimal number -137 to binary, show the effect of...
Assuming nine-bit 2’s complement representation, convert the decimal number -137 to binary, show the effect of the ROL operation on it with initial carry C=1, show the status bits and then convert the result back to decimal. Repeat with the ASR operation. Write the RTL specification of both operations shown here.
1. Assuming unsigned binary representation, convert 10110 (B) to decimal. Show work. 2 . Assuming unsigned...
1. Assuming unsigned binary representation, convert 10110 (B) to decimal. Show work. 2 . Assuming unsigned binary representation, convert 12 (D) to binary. Show work. 4. Assuming 9-bit two’s complement representation and let x be binary representation of 94 (D) a. Find x. Show work. b. Show the effect of the ASL operation on x, and then convert the result back to decimal. c. Show the effect of the ASR operation on x, and then convert the result back to...
Represent the following decimal numbers in binary using 8-bit signed magnitude, one’s complement, and two’s complement:...
Represent the following decimal numbers in binary using 8-bit signed magnitude, one’s complement, and two’s complement: a) 77 b) -42 c) 119 d) -107 E) 60 f) -60 g) 20 h) -20
Find the 2's complement of the following decimal numbers (You must convert the number to binary...
Find the 2's complement of the following decimal numbers (You must convert the number to binary and the answer has to be in binary with the same number of bits as the conversion)? a. 20 b. 15 c. 2126 d. 266 e. 466 please explain how you did it!
1. Given Hexadecimal EDCC16 Detail steps are required. 1) What is the binary representation? 2) What...
1. Given Hexadecimal EDCC16 Detail steps are required. 1) What is the binary representation? 2) What is the negation of EDCC in HEX? 3) Convert it to decimal number if this is a 2s-complement signed binary representation in 16- bit register 4) Convert it to decimal number if this is an unsigned binary representation in 16-bit 2. Suppose we have 3 arrays A, B, and C, array A’s base address is in $S3, B’s base address is in $S4, C’s...
In the following problems, assume you are using 2s complement form and do the indicated operation....
In the following problems, assume you are using 2s complement form and do the indicated operation. Leave the answers in binary. Also, assume you are dealing with signed numbers. Also, assume we are saving the answer in a 8-bit register. In this case, for each problem would the saved answer be correct. If not for which of the following problems would if be incorrect and why?   6 + 7   6 + (-7)    -6 + 13 (Note: 13, which is positive...
Calculate A+B, A-B, for the following pairs of binary numbers.  Also, you must use 2’s complement arithmetic...
Calculate A+B, A-B, for the following pairs of binary numbers.  Also, you must use 2’s complement arithmetic to perform the subtraction operation. (a) 10101, 1011 (c) 101, 1011
[The following information applies to the questions displayed below.] Dain’s Diamond Bit Drilling purchased the following...
[The following information applies to the questions displayed below.] Dain’s Diamond Bit Drilling purchased the following assets this year. Purchase Original Asset Date Basis Drill bits (5-year) Jan-08 $ 90,500 Drill bits (5-year) Jul-15 98,500 Commercial building Apr-13 286,000 Assume its taxable income for the year was $64,250 for purposes of computing the §179 expense (assume no bonus depreciation). (Use MACRS Table 1, Table 2, Table 3, Table 4 and Table 5.) (Leave no answer blank. Enter zero if applicable.)...
Can i get the answer to these questions in detail explaining how you go to the...
Can i get the answer to these questions in detail explaining how you go to the solution 1.Convert to/from Hex (0) 2.Octal Binary Unsigned/ 2’s complement 3.Understand how to shift and rotate. 4.Understand the relationship between shifting and multiplication/division 5.Be able to recognize and use the following gates: AND OR NOT NAND NOR XOR 6.Understand how a half adder works Given a logical statement ((A OR B) AND NOT(C OR A)) show the gates. 7.What is the difference between an...