Assembly language program for transfer of data from one block of memory location to any other block of memory location (Overlapping)


Program:
MVI C,5
LXI H,2055
LXI D,2059
BACK: MOV A,M
STAX D
DCX H
DCX D
DCR C
JNZ BACK
HLT
Result:
Input:
Memory Location
Data value
2051
1
2052
2
2053
3
2054
4
2055
5
2056

2057

2058

2059


Output:
Memory Location
Data value
2051
1
2052
2
2053
3
2054
4
2055
1   (overlapped data)
2056
2
2057
3
2058
4
2059
5

Comments

Popular posts from this blog

Preamble to the Constitution of India:

Designing a calculator using HTML and JavaScript