Tuesday, 17 September 2013

To move data from one memory location to another

        ORG 000H
        SJMP START
START : MOV R2,#05H /* R2 declared as a pass counter*/
        MOV R0,#30H
        MOV R1,#50H
   UP : MOV A,@R0
        MOV @R1,A
        INC R0
        INC R1
        DJNZ R2,UP
 STOP : SJMP STOP

No comments:

Post a Comment