仲間の SO ユーザー、
1010 などの値がメモリに保存されている場合、MSB から始まる各ビットを一度に 1 つずつロードするにはどうすればよいですか? つまり、
while loop
load $t1 with 1
shift some number by the amount indicated by the value in $t1 (1)
load $t1 with 0
shift some number by the amount indicated by the value in $t1 (0)
do the same until you load the LSB which is 0
start again at MSB (rotate right?)
end loop
.data
この値をメモリ内のセグメントで最初に宣言する方法について、いくつかのヒントが必要です。これを次のように宣言しますか?
value: .byte 00001010
また、個々のビットをレジスタにロードするにはどうすればよいですか?
敬具