STR[condition]T op1, addr_mode
其中:
condition |
16 個條件之一。請參閱條件程式碼狀態。 |
op1 |
包含源運算元的暫存器 |
addr_mode |
定址模式 2:載入與儲存字或無符號位元組 |
STRT 指令從 op1 的 LSB 讀取一個字的數據,並將它儲存到 addr_mode 指定的地址。在特權模式中,記憶體系統將訪問當作是在“使用者”模式下;其它情況下則執行普通的“使用者”模式訪問。condition 必須是有效值;否則將指令當作 NOP。
N |
Z |
C |
V |
Q |
S |
I |
F |
T |
T |
T |
T |
T |
|
|
|
|
|
31 |
|
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
|
16 |
15 |
|
12 |
11 |
|
0 |
condition |
0 |
1 |
I |
0 |
U |
0 |
1 |
0 |
basereg |
op1 |
addr_mode |
1 ; example for STRT
2 ;@.text
3 ;@.globl funstr
4 ;@.align 0
5 ;@ **** STRT (Addressing Mode 2) ****
6 ;
7 AREA example, CODE, READONLY
8
9 label1
10 ; Store 32-bit word from R1 to address held in R2
11 00000000 E5A21000 STRT R1,[R2]
12
13 ; Store 32-bit word from R5 to address held in R4
14 ; then decrement R4 by an offset determined by the
15 ; value of R3 logically shifted right twice
16 00000004 E6245123 STRT R5,[R4],-R3, LSR #2
17
18 ; Store 32-bit word from R6 to R13, the stack pointer
19 ; then decrement stack pointer by 4
20 00000008 E42D6004 STRT R6,[R13],#-4