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