STR op, [basereg, (#value *4)]
其中:
op |
包含源運算元的暫存器 |
basereg |
包含基址的基址暫存器 |
value |
5 位立即數乘以 4 然後加到 basereg 形成的地址 |
N |
Z |
C |
V |
Q |
S |
I |
F |
T |
|
|
|
|
|
|
|
|
|
15 |
14 |
13 |
12 |
11 |
10 |
|
6 |
5 |
|
3 |
2 |
|
0 |
0 |
1 |
1 |
0 |
0 |
value |
basereg |
op |
1 ;@.text
2 ;@.globl funstr
3 ;@.align 0
4 ;
5 AREA example,CODE,READONLY
6 CODE16
7
8 label1
9 ; Store register R2 to memory at
10 ; address given by value of R1
11 ; plus offset of 116 bytes
12 00000000 600A STR R2, [R1, #Ox74]