Question: 3 . 4 Program 4 s l l $t 0 , $a 1 , 2 add $t 0 , $a 0 , $ t 0

3.4 Program 4
s l l $t0, $a1,2
add $t0, $a0, $ t 0
lw $t1,0( $ t 0)
lw $t2,4( $ t 0)
sw $t2,0( $ t 0)
sw $t1,4( $ t 0)
1.(10 points) From the assembly code, what machine code might a MIPS assembler produce? Include
the code in your code report.
2.(10 points) Load the machine code into your MIPS processor instruction memory run the simulation
in Vivado. Include the waveform and explain your simulation results in your simulation report.
3.(5 points) What does this program do? Write the C code for this assembly program. You can use
any variable names but explain them in the comments in your code report.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!