Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 MIPS 中,是否有一种简短的方法可以检查/获取 32 位整数中的最低有效位?它显然是为奇数设置的,并且检查整数是奇数还是偶数的算法可以决定这一点。但我只是想知道有没有更好的方法来做到这一点......
andi $t0, $s0, 1将获得最低有效位$s0并将其放入$t0.
andi $t0, $s0, 1
$s0
$t0