Question: 2.10 When you add two 8-bit unsigned numbers, an overflow error can occur. Which of the following techniques can be used to handle the problem

2.10 When you add two 8-bit unsigned numbers, an overflow error can occur. Which of the following techniques can be used to handle the problem of overflow? If there is more than one answer, give all answers that could work. a) Write software that is friendly. b) Write software using structured programming. c) Implement a ceiling and floor. d) Write software so there is drop-out. e) Promote the numbers and perform the addition with this new precision. f) Write software to mask the two input data g) Demote the numbers and perform the addition with this new precision. h) Convert the numbers to signed and perform the addition with signed math.

2.11 Consider the reasons why one chooses which technique to create a variable. a) List three reasons why one would implement a variable using a register. b) List three reasons why one would implement a variable on the stack and access it using RegX indexed mode addressing. c) List three reasons why one would implement a variable in RAM and access it using extended mode addressing.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!