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

語法

BL target
BLX target

其中:

target

目標地址

說明

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

定址模式

無運算元。

影響的標誌

N

Z

C

>V

Q

S

I

F

T

 

 

 

 

 

 

 

 

M

編碼

>15

14

13

12

11

10

 

0

1

1

1

H

target

示例

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, within 4M bytes
11                                 ; Load return address to LR and
12                                 ; branch to subroutine dashed
13    00000000    F800DF00    BL   dashed
14
15
16                                 ; start of subroutine dashed
17                                  dashed
18
19
20
21                                 ; Unconditional call to an ARM
22                                 ; (32-bit) subroutine, within 4M bytes
23                                 ; Load return address to LR and
24                                 ; branch to subroutine dotted, which
25                                 ; is in 32-bit ARM code
26    00000002    E800F000    BLX   dotted
27
28                                 ; start of subroutine dotted
29                                  dotted

更多資訊

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

請參閱 BLX(2) 指令

請參閱 BX 指令

請參閱 TST 指令