Question: If $ t 2 has the base of the array A and $ s 2 corresponds to h , the assignment statement A [ 2

If $t2 has the base of the array A and $s2 corresponds to h, the assignment statement A[250]=h-
A[250]; is compiled into:
lw $t0,1000($t2)??# Temporary reg $t0 gets A[250]
sub $t0,$s2,$t0??# Temporary reg $t0 gets h-A[250]
sw $t0,1000($t2)??# Stores h+A[250] back into A[250]
What is the MIPS machine language code for the above three instructions?
The last guy misunderstood the question. I need the binary machine code, and hexademical from these instructions
If $ t 2 has the base of the array A and $ s 2

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!