Question

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?

  1.   6 + 7
  2.   6 + (-7)
  3.    -6 + 13 (Note: 13, which is positive in binary needs 4 bits and is 0111, -6 in 2’s complement form is done as follows: 6 = 0110, now change all bit in 6 and add 1 to get 1010 = -6 in 2s complement form. It is important to notice that 6 in bold above is positive and must start with a 0. So, we couldn’t write 6 initially as 110 and then change it to 2s-complement. That is, since we are dealing with signed numbers each must start with a 0 or 1 to show its sign.)
  4. -6 – (-7)
  5. -70 – 80 (In this example, What would the Overflow Flag (OF) be and how did it get this value.)

Homework Answers

Answer #1

(-70+(-80))

Here -70 & 80 subtracted

(70)10=(01000110)2

(-70)10=(10111010)2 ----by 2'complement

(80)10=(01010000)2

(-80)10=(10110000)2

Add(-70 & -80)

10111010

+ 10110000

--------------------------

1] 01101010

When 2'complement is taken

10010110 (-150)

Overflow flag indicates that the result is too large to fit in 8 bit.OF is 1when the following conditions satisfies.

When the two +ve operands are added there results should exceed127

When the two -ve operand are subtracted there result should be less than -128

OF=1 because the result is less than -128 i.e -150

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
EE 263 Homework Assignment 1    Perform the following conversions: Convert 51 (decimal) to binary and...
EE 263 Homework Assignment 1    Perform the following conversions: Convert 51 (decimal) to binary and to hex Convert 0xD1 (hexadecimal) to binary and to decimal Convert 0b11001001 (binary) to hex and to decimal Find the 2’s complement of the following 4-bit numbers 1101 0101 Perform the following 4-bit unsigned operations. For each, indicate the 4-bit result and the carry bit, and indicate if the answer is correct or not. 5 + 8 2 + 12 13 – 7 4...
Adder Start out by picking 2 positive six bit binary numbers that are less than 3210,...
Adder Start out by picking 2 positive six bit binary numbers that are less than 3210, written in 2's complement notation. The eventual goal is to add these two numbers. 1) Look at the LSB bit of the numbers, and using logic gates (NANDs, NORs, etc.) design a circuit that correctly gives the right output for any possible combination of bits in the LSB place. 2) Now look at the next column to the left (next to LSB). In this...
Solve the problems below using well-formatted Excel solutions. Do not hardcode numbers in the formulas…..only use...
Solve the problems below using well-formatted Excel solutions. Do not hardcode numbers in the formulas…..only use cell references to the input data. I will change the input data in your problem to check alternate solutions. You will turn in a complete working Excel spreadsheet with your solution. 1)     What is the price of a semiannual $1,000 par value bond with four years left until maturity that pays a coupon of 3.75% and is yielding 5.25%? What would it be yielding...
Do the following problems. 1. Each of three barrels from a manufacturing line are classified as...
Do the following problems. 1. Each of three barrels from a manufacturing line are classified as either above (a) or below (b) the target weight. Provide the ordered sample space. 2. The heat on each of two soldered parts is measured and labeled as either low (l), medium (m), or high (h). State the number of elements in the ordered sample space. 3. Consider the set of Beatles songs with a primary writer as either Paul McCartney (P) or John...
Do all the following problems. I. Choose the best answer for each multiple choice. Please use...
Do all the following problems. I. Choose the best answer for each multiple choice. Please use CAPITAL letters to indicate your answer and write neatly. (30 points) 1. ____ 4.____ 7. ____ 10.____ 13. ____ 2. ____ 5.____ 8. ____ 11.____ 14. ____ 3. ____ 6.____ 9. ____ 12.____ 15. ____ Whenever the population standard deviation is unknown and the population has a normal or near-normal distribution, which distribution is used in developing an interval estimation? A. standard distribution B....
1. Vim commands: a. How do you auto indent your program? b. Explain what the following...
1. Vim commands: a. How do you auto indent your program? b. Explain what the following commands do: dd, y3, p, :set cindent (1 pt) VIM exercises These exercises on the computer need to be repeated by each student in the pair. This is to ensure that both students understand how to get around in Linux!!! For this part of the lab, you will create a .vimrc file that will help you develop your C++ programs using VIM. First, we...
just do questions 5 through 10 3.13.6 Question 110 pts A 319 kg motorcycle is parked...
just do questions 5 through 10 3.13.6 Question 110 pts A 319 kg motorcycle is parked in a parking garage. If the car has 35,494 J of potential energy, how many meters above ground is the car? Report your answer to 1 decimal place. Please do not include units or the answer will be marked incorrect. Flag this Question Question 210 pts A box sitting on the top of a hill has 252 J of potential energy. If the hill...
Shaleen: Pregnancy & Lactation Case Study (10 pts.) Instructions: This case study assignment should be treated...
Shaleen: Pregnancy & Lactation Case Study (10 pts.) Instructions: This case study assignment should be treated as a short paper, including a cover page, a heading, and page numbers. Set up the paper with one-inch margins, double-spacing, with the font set at 12-point Times New Roman. The introduction to the paper should summarize the case you have chosen to discuss. Responses to the case study questions should be written in paragraph form. Each paragraph in the case study should begin...
8 through 10 done please!! 3.13.6 Question 110 pts A 319 kg motorcycle is parked in...
8 through 10 done please!! 3.13.6 Question 110 pts A 319 kg motorcycle is parked in a parking garage. If the car has 35,494 J of potential energy, how many meters above ground is the car? Report your answer to 1 decimal place. Please do not include units or the answer will be marked incorrect. Flag this Question Question 210 pts A box sitting on the top of a hill has 252 J of potential energy. If the hill is...
answer all questions 3.13.6 Question 110 pts A 319 kg motorcycle is parked in a parking...
answer all questions 3.13.6 Question 110 pts A 319 kg motorcycle is parked in a parking garage. If the car has 35,494 J of potential energy, how many meters above ground is the car? Report your answer to 1 decimal place. Please do not include units or the answer will be marked incorrect. Flag this Question Question 210 pts A box sitting on the top of a hill has 252 J of potential energy. If the hill is 279 meters...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT