1 Answers
Code:
AREA SUMOFTWO_INTHIRD, CODE
ENTRY
LDRR3, = 0X40000000
LDRR2, = AR1
LDRR1, = AR2
MOV R5, #5
AR3 LDR R4, [R2], #4
LDR R6, [R1], #4
ADD R7, R4, R6
STR R7, [R3], #4
SUBS R5, R5, #1
BNE AR3
STOP B STOP
AR1 DCD 0X01, 0X02, 0X04, 0X06, 0X05
AR2 DCD 0X01, 0X02, 0X04, 0X06, 0X05
END