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 で 2 つの入力レジスタが与えられた場合: $t0、$t1
ブランチを使用せずに、どちらが大きいかをどのように判断しますか?
SLT / SLTU命令を使用できます([Unsigned]未満に設定):
SLT $t2,$t0,$t1
また
SLTU $t2,$t0,$t1
$t0が$t1より小さい場合、$ t2は1になり、そうでない場合、$t2は0になります。