LDRH dest,[ basereg, (#value *2)]
其中:
dest |
目標暫存器 |
basereg |
包含基址的暫存器 |
value |
5 位值乘以 2,然後加到 basereg 上 |
N |
Z |
C |
V |
Q |
S |
I |
F |
T |
|
|
|
|
|
|
|
|
|
15 |
14 |
13 |
12 |
11 |
10 |
|
6 |
5 |
|
3 |
2 |
|
0 |
1 |
0 |
0 |
0 |
1 |
value |
basereg |
dest |
1 ;@.text
2 ;@.globl funldrh
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 R2
11 ; plus offset of 24 bytes
12 ; Only 2 bytes are loaded into low
13 ; part of register which is then
14 ; zero-extended to 32 bits
15 00000000 8810 LDRH R0, [R2, #Ox18]