Question: UIC-ECE 366 Computer Organization- Fall 2018 Project 1: MIPS programming with MARS In this project, you will write two MIPS assembly programs and verify that


UIC-ECE 366 Computer Organization- Fall 2018 Project 1: MIPS programming with MARS In this project, you will write two MIPS assembly programs and verify that they run correctly with the simulator MARS. These two programs will be used for your application-specific processor in later projects. Allowed subset of MIPS instructions to use: lastr name example add $1,52,53 addi $1,$2,100 addu $1,52,53 sub $1,$2,53 st $1, 52, $3 functionality add immediate dd (unsigned) subtract set if less than set if less than immediate shi $1, $2, 100 set if less than (unsigned) su $1, 52, 53 and and immediate $1 $2 100 $1- $2+$3 no overflow and $1,$2,S3 andi $1,$2,100 or $1,$2,53 ori $1,$2,100 xor $1, $2, $3 xori $1, $2, 255 if ($25 (logical $1,100 $1 100x2 oad word store word w $1, 1000152) s 51, 100052) memory IS2 1000-$1 $1 memory [52+1000] branch if equal branch if net equal jump beg $1,$24arget(51 $2), branch to target bne $1,52,targetS1r $21 branch to target i target (unconditionally) jump to target ump register jump and ink r $31 jal target PC 531 (replace PC with Sra save PC:4 to Sra and jump to target For registers, you are allowed to use S0, $8-$23 for general purpose computation If you need to use function calls, you can use $31 which is Sra
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
