是手臂组装机。我需要使用指令 ldm 和 stm 在一次迭代中复制 8 个字的数组。您不得添加或清除任何代码行。我该怎么做呢?
这是您需要使用的代码:
num EQU 24
IMPORT exit
EXPORT start
start LDR r0, =src
LDR r1, =dst
MOV r2, #num
LSL r2,#3
LOOP LDM ???? what to put instead of ????
STM ????
SUBS r2, r2, #1
BNE LOOP
BL exit
AREA Block, DATA, READWRITE
src DCD 1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8
dst DCD 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
END