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.
2.12) List three factors that we can use to evaluate the goodness of a program.
2.13) In 32 words or less, explain the differences between a Mealy and Moore FSM. For which types of problems should you implement with Mealy? For which types of problems should you implement with Moore?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started