### A good answer might be:

No, because the original value x is used several times and needs to be held in a register.

# End of Chapter

(The program could be written with one register if you could use main memory to store `x`. But these notes have not told you how, yet).

You have reached the end of this chapter. Click on a blue subject that interests you to go to where it was discussed. To get back here, click on the "back arrow" button of your browser.

- Overflow in unsigned and two's comp.
- The addu and add instructions.
- Decimal constants in assembly language.
- Sign extension of a two's comp. integer.
- The addiu and addi instructions.
- The subu and sub instructions

Go to Table of Contents

You have reached the end of the chapter.