The required program snippet for the above operation in ARM assembly with R2 as base address of array A snd R3 as base address of array B is as below.
MOV R4,#0 ; initialise loop counter
LOOP LDR R5,[R2],#4 ;load the word content 32bit array A element to R5 register and post increment R2 to point to nextvelement of array A
STR R5,[R3],#16 ;Store the word content 32bit into array B element from R5 register and post increment R3 to point to next 4th consicutive element of array B
ADD R4,R4,#1 ; increment loop counter
CMP R4,#12 ; checking condition for 12 elements
BNE LOOP ; repeats loop for 12 times till r4 is 12
Get Answers For Free
Most questions answered within 1 hours.