1. Flow Chart Start
Initialize HL pair as Source Pointer
Initialize C Reg to ’05H’ as Counter
Copy A wherever DE is pointing
Stop
Get value pointed by HL into A
Initialize DE pair as Dest. Pointer
X
X
Decrement C by 1
C=0?
Yes
No
Increment HL & DE Pointers by 1
2. Address Label Instruction Opcode
6200, 1, 2 LXI H,7100H
3, 4, 5 LXI D,7105H
6, 7 MVI C,05H
8 MOV A,M
9 STAX D
A INX H
B INX D
C DCR C
D, E, F JNZ UP
10 RST1
UP:
3. Flow Chart Start
Initialize HL pair as Array1 Pointer
Initialize C Reg to ’05H’ as Counter
Copy A wherever HL is pointing
Stop
Get value pointed by HL into B
Initialize DE pair as Array2 Pointer
X
X
Decrement C by 1
C=0?
Yes
No
Increment HL & DE Pointers by 1
Get value pointed by DE into A
Copy A wherever DE is pointing
Copy B into A
4. Address Label Instruction Opcode
6200, 1, 2 LXI H,7100H
3, 4, 5 LXI D,7105H
6, 7 MVI C,05H
8 MOV B,M
9 LDAX D
A MOV M,A
B MOV A,B
C STAX D
D INX H
E INX D
F DCR C
10, 11, 12 JNZ UP
13 RST1
UP: