Question: I do not know how to convert this C code into a MIPS program. I am only allowed to use the basic instructions such as

I do not know how to convert this C code into a MIPS program. I am only allowed to use the basic instructions such as li,lw,sw,addi,bne,beq,j. Also could you print all the variables at the end of the program? The code below is currently my code. It is wrong, but this is how basic it should be. Could you write a program that kinda looks like mine. var1=2 var2=0 var3= -2018

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
