Page 1 of 1

1. (100 pts) Write three MIPS-Assembly programs to implement the following mathematical expressions (use the "loop appro

Posted: Mon Jun 06, 2022 2:26 pm
by answerhappygod
1 100 Pts Write Three Mips Assembly Programs To Implement The Following Mathematical Expressions Use The Loop Appro 1
1 100 Pts Write Three Mips Assembly Programs To Implement The Following Mathematical Expressions Use The Loop Appro 1 (30.63 KiB) Viewed 29 times
1. (100 pts) Write three MIPS-Assembly programs to implement the following mathematical expressions (use the "loop approach": see lecture notes): (a) (13.33 pts): ID: Σ[a] (b) (20 pts): Trace the above code like the example in the notes (c) (13.33 pts): 2D: Σ Σa+b] a=16=1 (d) (20 pts): Trace the above code like the example in the notes 4 4 4 (e) (13.33 pts):3D: Σ Σ[a+b+c] a=16-1=1 (f) (20 pts) Trace the above code like the example in the notes Place the result, of each mathematical expression, in register: 59. At the end of the problem clearly state the formula (expression) and the final result (decimal) • In the report include the Register-Plane with the final result (decimal). • Prepare a report (PDF) taking in to account the following guidelines 1. Present the problem and the Assembly Code (a) The programs should be simple and well-documented (b) The programs should be modularized (c) Detailed comments are necessary 2. Indicate if the program runs successfully according to specifications 3. Discuss the result and clearly state the result in decimal.