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


Program:
MVI C,5
LXI H,2051
LXI D,2056
BACK: MOV A,M
STAX D
INX H
INX 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

2060


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

Comments

Popular posts from this blog

Preamble to the Constitution of India:

Designing a calculator using HTML and JavaScript