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.
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!
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...
13. (True/False): The register list in the USES directive must use commas to separate the register...
13. (True/False): The register list in the USES directive must use commas to separate the register names. 11. (True/False): The USES operator lets you name all registers that are modified within a procedure. 2. Which instruction pushes the 32-bit EFLAGS register on the stack? 18. Which statement is true about what will happen when the example code runs? 1: main PROC 2: mov eax,40 3: push offset Here 4: jmp Ex4Sub 5: Here: 6: mov eax,30 7: INVOKE ExitProcess,0 8:...
Identify whether the following are true or false. (a) 5 ∈ {1, 2, {3, 4}, {1},...
Identify whether the following are true or false. (a) 5 ∈ {1, 2, {3, 4}, {1}, {5}} (b) {5} ∈ {1, {2}, {3, 4}, 5, {5}} (c) {5} ⊆ {1, {2}, {3, 4}, 5, {5}} (d) {3, 4} ⊆ {1, 2, {3, 4}, {1}, {5}} (e) {1, 2} ⊆ {1, 2, {3, 4}, {1}, {5}} (f) {5} ∈ P(N) (g) {5} ⊆ P(N) (h) {{5}} ∈ P(N) (i) ∅ ⊆ P(R) (j) ∅ ∈ P(R)
Use the following data for the next five questions: A partially completed bank reconciliation for RACE...
Use the following data for the next five questions: A partially completed bank reconciliation for RACE Company at December 31, 2012, as well as additional data necessary to answer the questions, follow: RACE COMPANY Bank Reconciliation December 31, 2012 Balance per books $ 15,650 Add: (1) Deduct: (2) Adjusted cash balance $    Balance per bank statement $ 21,010 Add: (3) Deduct: (4) Adjusted cash balance $ Differences between book records and bank statement on December 31, 2012 are as...
Use the following macroeconomic model structure to answer the questions followed. Please note that you must...
Use the following macroeconomic model structure to answer the questions followed. Please note that you must show your work of estimations for these numerical multiple-choice questions for gradable credit. Without showing your works of estimation, your answers won’t be credible for take-home exam. 8 pts C = 300 + 0.8Yd; C = consumption function; Yd (Y-T) = disposable income I = 200; I = Investment G = 400; G = Government expenditure T = 200; T = Tax revenue Also...