Question
Select a sequence of two instructions that will branch to JUMP if the value in $t0 is strictly less than the value in $t1: slt
Select a sequence of two instructions that will branch to JUMP if the value in $t0 is strictly less than the value in $t1:
slt $t1,$t0,$t2slt $t0,$t1,$t2slt $t2,$t0,$t1slt $t2,$t1,$t0
beq $t2,$0, JUMPbeq $t2,$t1, JUMPbne $t1,$t0, JUMPbne $t2,$0, JUMP
Select a sequence of two instructions that will branch to JUMP if the value in $t0 is less than or equal to the value in $t1:
slt $t1,$t0,$t2slt $t0,$t1,$t2slt $t2,$t0,$t1slt $t2,$t1,$t0
beq $t2,$0, JUMPbeq $t2,$t1, JUMPbne $t1,$t0, JUMPbne $t2,$0, JUMP
The instructions given for you to use involve slt, beq and bne.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started