Program:
//Content of memory location C050H store in C051H
//and Content of memory location C051H store in C050H
LXI H,C050h
MOV A,M
MOV B,A
LXI H,C051h
MOV A,M
STA C050h
MOV A,B
STA C051h
HLT
Input:
Content C050: 45h
Content C051: 52h
Output:
Content C050: 52h
Content C051: 45h
Result: Content of C050H and C051H are exchange
0 Comments