Use 1 dm and s t m to write a short sequence of assembly lan
Use 1 dm and s t m to write a short sequence of assembly language to copy 16 words of data from a source address to a destination address. Assume that the source address is already loaded in r0 and the destination address is already loaded in r1.You may use registers r2through r5 to hold values as needed. Your code is allowed to modify r0 and/or r1.
Solution
Count EQU 4
Loop : LDM ro!,{r2-r5}
STM r1!,{r2-r5}
MOVS r2,#Count
SUBS r2,r2,#1
MOVS Count,r2
CMP r2, #0
BNE Loop
END
