From ba7d38240198ba854384328843da52a26209f488 Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 28 Nov 2021 22:26:50 +0000 Subject: deploy: 6660154d7eaae83f3e8765af8b93dcd651e05452 --- arch/armv7.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'arch/armv7.html') diff --git a/arch/armv7.html b/arch/armv7.html index a749404..f380dd1 100644 --- a/arch/armv7.html +++ b/arch/armv7.html @@ -81,7 +81,7 @@ @@ -212,10 +212,13 @@ blx <Rm> // absolute branch to address in register Rm &

Load/Store

Different addressing modes.

-
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.

stmfd r0!, {r1-r2, r5}    // r0-=4; [r0]=r5
-- 
cgit v1.2.3