STRH op, [basereg, (#value *2)]
其中:
op |
包含源運算元的暫存器 |
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 |
0 |
value |
basereg |
op |
1 ;@.text
2 ;@.globl funstrh
3 ;@.align 0
4 ;
5 AREA example,CODE,READONLY
6 CODE16
7
8 label1
9 ; Store low half of register R0
10 ; to memory at address given by
11 ; value of R2 plus offset of 24
12 ; bytes
13 00000000 8010 STRH R0, [R2, #Ox18]