Program:

 

Copy the content of memory location C050 to memory location C051.

LXI H C050h

MOV A,M

STA C051h

HLT

Input:

 

C050: 55h

C051: 00h

 

Output:

 

C050: 55h

C051: 55h