; initialize x
AND R2, R2, #0 ; Clear out R2
ADD R2, R2, #9 ; R2 contains the value 9
STR R2, R6, #3 ; x = 9;
; notice, x has offset 3
LDR R2, R6, #3 ; Get the value of x
ADD R2, R2, #4 ; calculate x + 4
STR R2, R6, #3 ; x = x + 4;