Write an assembly program for memory transfer

 ; Memory Transfer


org 00h

mov r0,#30h //source address D: 0030H

mov r1,#40h //destination address

mov r7,#05h //count, the number of data to be exchanged

back: mov a,@r0

mov r4,a

mov a,@r1

mov @r0,a

mov a,r4

mov @r1,a

inc r0

inc r1

djnz r7,back

end

Comments