Write an assembly language program to exchange N = ___h bytes of data at location A: _____h and at location B: _____h. Let N = 05h A: 30h B: 40h

ORG 0000H

MOV R3,#05H

MOV R0,#30H

MOV R1,#40H

BACK:MOV A,@R0

MOV R4,A

MOV A,@R1

XCH A,R4

MOV @R1,A

MOV A,R4

MOV @R0,A

INC R0

INC R1

DJNZ R3,BACK

END

Comments

Popular posts from this blog

Foil type strain gauge

Working of hair hygrometer.