Do an assembly language program to exchange a block of data from one external memory location to another for 8051

 PROGRAM



ORG 0000H
MOV R0,#50H ;load 50H in R0 
MOV R1,#80H
MOV R5,#05H
AGAIN:
MOVX A,@R0
MOV B,A
MOVX A,@R1
XCH A,B
MOVX @R1,A
MOV A,B
MOVX @R0,A 
INC R0
INC R1
DJNZ R5,AGAIN
END




Comments

Popular posts from this blog

Foil type strain gauge

Working of hair hygrometer.

Wire wound strain gauge