英特爾 XScale(R) 技術主題STRT - 帶轉譯儲存暫存器

語法

STR[condition]T op1, addr_mode

其中:

 condition

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

 op1

包含源運算元的暫存器

 addr_mode

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

說明

STRT 指令從 op1 的 LSB 讀取一個字的數據,並將它儲存到 addr_mode 指定的地址。在特權模式中,記憶體系統將訪問當作是在“使用者”模式下;其它情況下則執行普通的“使用者”模式訪問。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

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

更多資訊

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