diff options
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/armv7.md | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/arch/armv7.md b/src/arch/armv7.md index f6c3a96..2618938 100644 --- a/src/arch/armv7.md +++ b/src/arch/armv7.md @@ -71,10 +71,13 @@ blx <Rm> // absolute branch to address in register Rm & ### Load/Store Different addressing modes. ```armasm -str r1, [r0] // [r0]=r1 -str r1, [r0, #4] // [r0+4]=r1 -str r1, [r0, #4]! // r0+=4; [r0]=r1 -str r1, [r0], 4 // [r0]=r1; r0+=4 +ldr r1, [r0] // r1 = [r0] +ldr r1, [r0, #4] // r1 = [r0+4] + +ldr r1, [r0, #4]! // pre-inc : r0+=4; r1 = [r0] +ldr r1, [r0], #4 // post-inc: [r0] = r1; r0+=4 + +ldr r0, [r1, r2, lsl #3] // r0 = [r1 + (r2<<3)] ``` Load/store multiple registers full-descending. |