LDMIA startreg!, reg {, reglist }
其中:
startreg |
包含起始地址的暫存器 |
! |
啟用基址暫存器寫回; |
reg |
要載入的有效暫存器 |
N |
Z |
C |
V |
Q |
S |
I |
F |
T |
|
|
|
|
|
|
|
|
|
15 |
14 |
13 |
12 |
11 |
10 |
|
8 |
7 |
|
0 |
1 |
1 |
0 |
0 |
1 |
startreg |
reglist |
1 @.text
2 @.globl funldm
3 @.align 0
4 ;
5 AREA example,CODE,READONLY
6 CODE16
7
8 label1
9 ; Load a block of registers R1, R2,
10 ; R4, R5, R6 and R7 from memory
11 ; starting at address held in R3.
12 ; R3 is incremented by 4*6 bytes.
13 ; Note: Registers loaded in their
14 ; numeric order, not as specified.
15 ; That is, R1 is loaded first from
16 ; lowest memory address i.e. [R3]
17 00000000 CBF6 LDMIA R3!, {R2,R4-R7,R1}
18
19
20
21 ; Load a block of registers R1, R2,
22 ; R3 and R7 from memory, starting
23 ; at address held in R3.
24 ; Since R3 is in reg list to be
25 ; loaded, it retains its loaded value
26 ; and is not updated
27 00000002 CB8E LDMIA R3!, {R1-R3,R7}