Write a program to continuously copy 10 bytes of data starti
Write a program to continuously copy 10 bytes of data starting at ROM(code memory) address 400H to RAM (data memory) location starting at address 30H.
Solution
LXI H, 400H #Source location
 LXI D, 30H #Target location
 MVI C, AH #Number of bytes to be transfered
 UP:
 MOV A, M #Move the data from Source to Accumulator
 STAX D #Store the data in accumulator to the target location
 INX H
 INX D
 DCR C
 JNZ UP
 HLT

