#Microcontrollers Assembly code for memory transfer

ORG 00H
MOV R1,#05 ;Counter
MOV R0,#40H ;Source
MOV DPTR,#6000H ;Destination

move:
MOV A,@R0
MOVX @DPTR,A ;A->ext destn
INC R0 ;Source increment
INC DPTR ;destination increment
DJNZ R1,move
here:
sjmp here
END

Comments