Write an assembly language program to EXCHANGE the locations of two numbers stored in 9500H and 9501H.
PROCESS :
CODE :
# ORG 8000H
// STORE DATA IN 9500 AND 9501
MVI A,12
STA 9500
MVI A,13
STA 9501
// EXCHANGE
LDA 9500
MOV B,A
LDA 9501
STA 9500
MOV A,B
STA 9501
HLT
Post a Comment
0 Comments