Write an assembly language program to ADD the two 16 bits numbers, 1234H & ABCDH, which are stored in BC & DE register pair, respectively.Store the sum and carry in two consecutive memory locations starting from 9700H.
#ORG 8000
START: LXI B,1234H
LXI D,ABCDH
MOV A,C
ADD E
MVI C,00
MOV L,A
MOV A,BADC D
JNC CARRY
INR C
CARRY: MOV H,A
SHLD 9700H
MOV A,C
STA 9702H
HLT
Post a Comment
0 Comments