Question: Using the assembly instructions: add, addu, sub, subu, div and mul, translate the following expressions into their equivalent MIPS assembly. Do not use MIPS! This
Using the assembly instructions: add, addu, sub, subu, div and mul, translate the following expressions into their equivalent MIPS assembly. Do not use MIPS! This is just an assignment on paper. Assume that the named variables are in the following registers:
| Variable | Register |
| A | $t0 |
| B | $t1 |
| C | $s0 |
| D | $s1 |
| E | $s3 |
| F | $s4 |
Using Signed Arithmetic:
1. A = B + C
2. A = B C + D E + F
3. A = (B + C) * D
4. A = ((D * F) + (A C)) * E
5. A = (B + B) (2 * B)
6. C = (F - 32) * 5 9 # Assume 5 is in $t0, 9 is in $t1 and 32 is in $t2)
Using Unsigned Arithmetic:
1. A = B + C
2. A = B C + D E + F
3. A = (B + C) * D
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
