D_SEG SEGMENT
DADD1 DD 98765
SUM DD ?
D_SEG ENDS
E_SEG SEGMENT
DADD2 DD -15893
E_SEG ENDS
C_SEG SEGMENT
ASSUME CS:C_SEG,DS:D_SEG,ES:E_SEG
START:
MOV AX,SEG D_SEG
MOV DS,AX
MOV AX ,SEG E_SEG
MOV ES,AX
MOV SI,OFFSET DADD1
MOV DI,OFFSET DADD2
MOV AX,[SI]
MOV DX,[SI+2]
ADD AX,[DI]
ADC DX,[DI+2]
MOV [DI+4],AX
MOV [DI+6],DX
MOV AH,4CH
INT 21H
C_SEG ENDS
END START