Is there a short way to check/get for least significant bit in a 32-bit integer, in MIPS? It is obviously set for the odd numbers and an algorithm which checks for the whole number is odd or even can decide for this. But I just wonder is there a better way to do this...
A:
andi $t0, $s0, 1
will get the least significant bit of $s0
and put it in $t0
.
isbadawi
2010-04-05 16:43:26
thanks for the quick respond;)
israkir
2010-04-05 16:45:12