英特爾 XScale(R) 技術主題BLX(2) (Thumb*) - 帶鏈接與交換的分支

語法

BLX dest

其中:

dest

包含目標地址的暫存器 (R0..R14)

說明

此格式的 BLX 指令分支到包含 ARM* 或 Thumb* 子例程的地址的 dest。子例程的返回語義需要明確定義。

定址模式

無運算元。

影響的標誌

N

Z

C

V

Q

S

I

F

T

 

 

 

 

 

 

 

 

M

編碼

15

14

13

12

11

10

9

8

7

6

5

 

3

2

 

0

0

1

0

0

0

1

1

1

1

H2

dest

SBZ

示例

1                                ;@.text
2                                ;@.globl funblx
3                                ;@.align 0
4                                ;
5                               AREA example,CODE,READONLY
6                               CODE16
7
8                               label1
9                                ; Unconditional call to another
10                               ; Thumb subroutine, whose address
11                               ; is in R5.Load return address
12                               ; to LR before branching
13    00000000      47A8    BLX   R5
14
15
16
17
18                                ; Unconditional call to an ARM
19                                ; (32-bit) Subroutine, whose address
20                                ; is at word boundary F0 and loaded
21                                ; into R7.Load return address to
22                                ; LR before branching
23    00000002      F7C7    MOV   R7, OxF0
24    00000004      47B8    BLX   R7

更多資訊

請參閱 B(1) 指令
請參閱 B(2) 指令

請參閱 BL/BLX(1) 指令

請參閱 BX 指令

請參閱 TST 指令