- #1
XodoX
- 203
- 0
Hey guys. I'm trying to practice some basic MIPS, but I can't seem to get this right. You just plug in the number and then you follow the code and you'll get obviously the end result. I can't get the result for these here. Does anybody know? I'd really appreciate help. Thank you!
1. $t0 = 0x55555555
$t1= 0x12345678
And $t2, $t0, $t1
Bgtz $t2, add 1
J end
Add0: addi $t0, $t0, 0
Add1: addi $t1, $t1, 1
Add2 : addi $t2, $t2, 2
End:
Value of $t2 is needed
1. $t0 = 0x55555555
$t1= 0x12345678
And $t2, $t0, $t1
Bgtz $t2, add 1
J end
Add0: addi $t0, $t0, 0
Add1: addi $t1, $t1, 1
Add2 : addi $t2, $t2, 2
End:
Value of $t2 is needed