Steven Wood
2005-09-16 22:19:43 UTC
In Problem 3.12 we are supposed to show how to perform
slt $t0, $s0, $s1, with all of the conditional branch instructions (except
beq, and bne) removed as well as slt and all of its variants. It says Hint:
it requires more than 2 instructions.
However, I was able to do it in 2, I wrote it up and tested it in SPIM and
for all possible test cases:
+VAL < +VAL
-VAL < +VAL
-VAL < -VAL
and in all cases it returned the correct result for both true and false.
Just wondering, is this a "Good For You" situation, or am I missing
something?
-Thanks
slt $t0, $s0, $s1, with all of the conditional branch instructions (except
beq, and bne) removed as well as slt and all of its variants. It says Hint:
it requires more than 2 instructions.
However, I was able to do it in 2, I wrote it up and tested it in SPIM and
for all possible test cases:
+VAL < +VAL
-VAL < +VAL
-VAL < -VAL
and in all cases it returned the correct result for both true and false.
Just wondering, is this a "Good For You" situation, or am I missing
something?
-Thanks