LDR dest, [op1, op2]
其中:
dest |
目標暫存器 |
op1 |
包含地址第一個值的暫存器 |
op2 |
包含地址第二個值的暫存器 |
N |
Z |
C |
V |
Q |
S |
I |
F |
T |
|
|
|
|
|
|
|
|
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
|
6 |
5 |
|
3 |
2 |
|
0 |
0 |
1 |
0 |
1 |
1 |
0 |
0 |
op2 |
op1 |
dest |
1 @.text
2 @.globl funldr
3 @.align 0
4 ;
5 AREA example,CODE,READONLY
6 CODE16
7
8 label1
9 ; Load register R0 from address in
10 ; memory given by value of
11 ; register R3 plus R5
12 ; R3 points to start of a table
13 ; R5 is an offset within the table
14 00000000 5958 LDR R0, [R3, R5]