英特爾 XScale(R) 技術主題STR - 儲存暫存器

語法

STR[condition] op1, addr_mode

其中:

 condition

16 個條件之一。請參閱條件程式碼狀態

 op1

包含源運算元的暫存器

 addr_mode

定址模式 2:載入與儲存字或無符號位元組

說明

STR 指令從 op1 讀取 32 位數據,並將它儲存到 addr_mode 指定的地址。如果用作基址暫存器,它還啟用 PC 相對定址。condition 必須是有效值;否則將指令當作 NOP。

備註

如果試圖進行無效的載入或儲存數據訪問,則產生數據終止異常。如果實現系統控制協處理器時啟用對齊檢查,並且存在位 [01:0] != 0b00 的地址,則產生對齊異常。

定址模式

請參閱“定址模式 2 - 載入與儲存字或無符號位元組”。

影響的標誌

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

0

I

P

U

0

W

0

basereg

op1

addr_mode

示例

1           ;@.text
2           ;@.globl funstr
3           ;@.align 0
4           ;@ **** STR (Addressing Mode 2) ****
5           ;
6                    AREA example,CODE,READONLY
7
8                    label1
9           ; Store 32-bit word from R8 to address held in R10
10   00000000   E58A8000   STR   R8, [R10]
11
12          ; Store 32-bit word from R5 to address held in R4
13          ; then increment R4 by 28 bytes
14   00000004   E484501C   STR   R5, [R4], #28
15
16          ; Store 32-bit word from R0.The value in R4 is
17          ; logically shifted left 15 times and subtracted
18          ; from the address held in R5 to give the
19          ; destination address.The destination address
20          ; is then written back into R4
21   00000008   E7250004   STR   R0, [R5,-R4,LSL #OxF]!

更多資訊

請參閱定址模式 2:載入與儲存字或無符號位元組