AREA |.TEXT|, CODE, READONLY
EXPORT FUNCTION
FUNCTION
MOV R0, R13
SUB R0, R0, #4
LDR R1, =0X41424344
LDR R2, =0X51525354
LDR R3, =0X61626364
LDR R4, =0X71727374
STR R1, [R0] ; *(R0) = R1
STR R2,[R0, #-4]! ; *(R0 - 4) = R2
; R0 += 4
STR R3, [R0, #-4] ; *(R0 -4) = R2
SUB R0, R0, #4
SUB R0, R0, #4
STR R4, [R0], #-4 ; *(R0) = R4
; R0 -= 4
ADD R0, R0, #4
LDR R5, [R0] ; *(R0) = R5
LDR R6, [R0, #4]! ; *(R0 +4) = R5
; R0 += 4
LDR R7, [R0, #4] ; *(R0 +4) = R7
ADD R0, R0, #4
ADD R0, R0, #4
LDR R8, [R0], #4 ; *(R0) = R8
; *(R0) += 4
MOV PC, LR
END