tags:

views:

51

answers:

1

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
thanks for the quick respond;)
israkir