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