STR[condition] op1, addr_mode
其中:
condition |
16 個條件之一。請參閱條件程式碼狀態。 |
op1 |
包含源運算元的暫存器 |
addr_mode |
定址模式 2:載入與儲存字或無符號位元組 |
STRB 指令從 op1 的 LSB 讀取一個位元組的數據,並將它儲存到 addr_mode 指定的地址。如果用作基址暫存器,它還啟用 PC 相對定址。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 |
P |
U |
1 |
W |
0 |
basereg |
op1 |
addr_mode |
1 ;@.text
2 ;@.globl funstr
3 ;@.align 0
4 ;@ **** STRB (Addressing Mode 2) ****
5 ;
6 AREA example,CODE,READONLY
7
8 label1
9 ; Store least byte from R8 to an address 28 bytes
10 ; above that held in R10
11 00000000 E5CA801C STRB R8, [R10,#28]
12
13 ; Store least byte from R1 to address held in R4
14 ; then increment R4 by an offset given by
15 ; R2 rotated right 8 times
16 00000004 E6C41462 STRB R1, [R4], R2,ROR #8
17
18 ; Store least byte from R0 to address held in R3
19 00000008 E5C30000 STRB R0, [R3]