May I ask if I have gotten it right for the following inequality equivalent in MIPS? Or is there any better way to implement with the basic commands of slt and bne and bqe?
less than <
slt $t0, $s1, $s2
beq $t0, $zero, L
....
L:
less than equals <=
addi $s2, $s2, 1
slt $t0, $s1, $s2
beq $t0, $zero, L
....
L:
greater than >
slt $t0, $s1, $s2
bne $t0, $zero, L
....
L:
greater than equals >=
addi $s2, $s2, 1
slt $t0, $s1, $s2
bne $s0, $zero, L