Saturday, 8 October 2016

Copy a block of 20bytes of data from 60h to 73h to the location starting from 40h.

START: MOV R0,#60H
 MOV R1,#40H
 MOV R7,#14H
COPYIT: MOV A,@R0
 MOV @R1,A
 INC R0
 INC R1
 DJNZ R7,COPYIT
 OVER: SJMP OVER

No comments:

Post a Comment