Question: 3. MIPS coding (a) Find at least three different ways to assign 0 to register $t5 in MIPS. (b) Follow the instructions below CONSECUTIVELY, and

3. MIPS coding

(a) Find at least three different ways to assign 0 to register $t5 in MIPS.

(b) Follow the instructions below CONSECUTIVELY, and after each instruction write the value of destination register in decimal into the space provided.

ori $s0, $zero, 5 #$s0=_________

add $s1, $s0, $s0 #$s1 = _________

sll $s2, $s1, 2 #$s2=_________

sub $s4, $s1, $s2 #$s4=__________

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 Databases Questions!