Saturday, April 30, 2016

8051 Program – move block of data external memory

; move block of data bytes
; external memory
ORG 0H
START:
MOV R0,#10H ;Size of an array
MOV 82H,#00H ;DPL=00
LOOP:
MOV 83H,#80H ;DPH=80
MOVX A,@DPTR ;Src data to acc
MOV 83H,#90H ;DPH=90
MOVX @DPTR,A ;Acc to desti
INC DPTR
DJNZ R0,LOOP
SJMP $
END



Related topics:
8051 Program - move block of data without overlap   |   8051 Program - move block of data with overlap   |   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