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を使用して、入力(10進数)を8進数に変換し、その数値を表示するのに問題があります。プロジェクトでは、マスキングを使用する必要がありますが、これに適したサンプルコードはありますか?
使用中の数値の下位 3 ビットを除くすべてをマスクするには、次のようにし$t0ます。
$t0
andi $t1,$t0, 0x7 # 0x7 is binary 0111