op2, LSR op3
其中:
op2 |
指定包含要移位的值的暫存器。 |
LSL |
表示邏輯右移。 |
op3 |
指定包含移位值的暫存器。 |
if op3[7:0] == 0 then
addr_mode = op2
shifter_carry_out = C Flag
else if op3[7:0] < 32 then
addr_mode = op2 Logical_Shift_Right op3[7:0]
shifter_carry_out = op2[op3[7:0] - 1]
else if op3[7:0] == 32 then
addr_mode = 0
shifter_carry_out = op2[31]
else /*op3[7:0] >32 */
addr_mode = 0
shifter_carry_out = 0
此數據處理運算元提供右移的(除以二的可變次冪)無符號暫存器值。
此指令運算元代表暫存器 op2 的值,此值按照暫存器 op3 最低有效位元組中的值進行過邏輯右移。在騰出的空位中插入零。最後移出的位是移位器的進位。如果移位量大於 32,則此位等於零。如果移位量等於 0,則進位是 C 標誌。
31 |
|
|
28 |
27 |
26 |
25 |
24 |
|
|
21 |
20 |
19 |
|
|
16 |
condition |
0 |
0 |
0 |
opcode |
S |
op1 |
15 |
|
|
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
|
|
0 |
dest |
op3 |
0 |
0 |
1 |
1 |
op2 |
如果 R15 指定為暫存器 dest、op3、op2 或 op1,則結果將會無法預知。