Question: Which ones are the correct assembly code for this high level code? a = 2 b + 1 6 Variable aa is stored in register

Which ones are the correct assembly code for this high level code?
a =2b +16
Variable aa is stored in register $t0, and bb is stored in register $t1.
Choice 1 of 5:sll $t1, $t1,1addi $t0, $t1,16
Choice 2 of 5:addi $s0, $zero, 16sll $t1, $t1,1add $t0, $t1, $s0
Choice 3 of 5:sll $t1, $t1,2addi $t0, $t1,16
Choice 4 of 5:addi $s0, $zero, 2mult $s0, $t1mflo $s0addi $t0, $s0,16
Choice 5 of 5:addi $s0, $zero, 2mult $s0, $t1addi $t0, $t1,16

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!