📜  arm str 示例 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:42.645000             🧑  作者: Mango

代码示例1
ldr r0, adr_var1  @ load the memory address of var1 via label adr_var1 into R0 
    ldr r1, adr_var2  @ load the memory address of var2 via label adr_var2 into R1 
    ldr r2, [r0]      @ load the value (0x03) at memory address found in R0 to register R2  
    str r2, [r1]      @ store the value found in R2 (0x03) to the memory address found in R1