Menu

(Solved) : 210 Add Two 8 Bit Unsigned Numbers Overflow Error Occur Following Techniques Used Handle P Q44046866 . . .

2.10 When you add two 8-bit unsigned numbers, an overflow errorcan occur. Which of the following techniques can be used to handlethe problem of overflow? If there is more than one answer, give allanswers 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 newprecision.
f) Write software to mask the two input data
g) Demote the numbers and perform the addition with this newprecision.
h) Convert the numbers to signed and perform the addition withsigned math.

2.11 Consider the reasons why one chooses which technique tocreate a variable.
a) List three reasons why one would implement a variable using aregister.
b) List three reasons why one would implement a variable on thestack and access it using RegX indexed mode addressing.
c) List three reasons why one would implement a variable in RAM andaccess it using extended mode addressing.

Expert Answer


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

OR