; move block of data bytes ; without overlap ORG 0H START: MOV R1,#10H      ;starting addr of src MOV R2,#20H      ;ending addr of src MOV R0,#30H      ;starting addr of desti CLR C MOV A,R2 SUBB A,R1 MOV R2,A    ;determination of size and stored in R2 LOOP:  MOV A,@R1 MOV @R0,A   ;copy data byte INC R1 INC R0 DJNZ R2,LOOP SJMP $ END 
Related topics:
8051 Program - move block of data with overlap | 8051 Program - move block of data external memory | 8051 Program - exchange content of two ram locations | 8051 Program - exchange block of data external memory | 8051 Program - memory compare | 8051 Program - swap nibbles | 8051 Program - memory subroutines | 8051 Program - math subroutines | 8051 Program - conversion subroutines
List of topics: 8051
 
No comments:
Post a Comment