(Solved) : Cse Eee 230 Assignment 2 Due January 30 11 59pm Assignment Designed Introduce Mips Assembl Q44133570 . . .

CSE/EEE 230 Assignment 2 Due January 30 11:59PM This assignment is designed to introduce you to the MIPS assembly language and the MIPS simulator. It is recommended that you use the MARS simulator but you are not required to do this. For this assignment, you are restricted to the following instructions plus the appropriate syscalls. Do not use extended (pseudo) instructions or any other instructions such as li. add sub addi a Open the text editor and type in the following. Then save your work as assign2 asm”. data .globl main .text main: c. Add the MIPS assembly language instructions (after main:) to complete the following steps. Do not skip steps. The Ss registers must have the correct values at the end. Use other registers as needed. Actions: 1. Initialize $s0 to 15 2. Initialize $s 1 to 4 3. Read (input) an integer and place the answer into $s2 4. Set $s3 to $s 1 – $50 + $s2 5. Set $s4 to $s3 + $s2 – 7 6. Set $s5 to 20 + Ss1 -$s2 7. Exchange or swap the values in Ss0 and $s1 8. Set $s2 to-$s2 9. Print the values for $50, $s 1, $s2, $s3, $s4 and $55 (they will appear on the same line of output) 10. End the program cleanly Specifics: • Test and check your work. The results in the registers must be correct at the end of the execution. • Your program will stop when it runs out of instructions. This is fine for this assignment. Documentation: . Comment the beginning of your programs with your name, class ID and assignment number . Comment every instruction Assignment 2 submittal: • Upload your assembly language program (asm file) using the link on the website . Be sure to click on the submit button and check that your file is submitted, Show transcribed image text CSE/EEE 230 Assignment 2 Due January 30 11:59PM This assignment is designed to introduce you to the MIPS assembly language and the MIPS simulator. It is recommended that you use the MARS simulator but you are not required to do this. For this assignment, you are restricted to the following instructions plus the appropriate syscalls. Do not use extended (pseudo) instructions or any other instructions such as li. add sub addi a Open the text editor and type in the following. Then save your work as assign2 asm”. data .globl main .text main: c. Add the MIPS assembly language instructions (after main:) to complete the following steps. Do not skip steps. The Ss registers must have the correct values at the end. Use other registers as needed. Actions: 1. Initialize $s0 to 15 2. Initialize $s 1 to 4 3. Read (input) an integer and place the answer into $s2 4. Set $s3 to $s 1 – $50 + $s2 5. Set $s4 to $s3 + $s2 – 7 6. Set $s5 to 20 + Ss1 -$s2 7. Exchange or swap the values in Ss0 and $s1 8. Set $s2 to-$s2 9. Print the values for $50, $s 1, $s2, $s3, $s4 and $55 (they will appear on the same line of output) 10. End the program cleanly Specifics: • Test and check your work. The results in the registers must be correct at the end of the execution. • Your program will stop when it runs out of instructions. This is fine for this assignment. Documentation: . Comment the beginning of your programs with your name, class ID and assignment number . Comment every instruction Assignment 2 submittal: • Upload your assembly language program (asm file) using the link on the website . Be sure to click on the submit button and check that your file is submitted,
Expert Answer
Answer to CSE/EEE 230 Assignment 2 Due January 30 11:59PM This assignment is designed to introduce you to the MIPS assembly langua…
OR