DATA SEGMENT
SUM DW ?
DATA ENDS
STACK SEGMENT STACK
DB 200 DUP(0)
STACK ENDS
CODE SEGMENT
ASSUME CS:CODE , DS:DATA , SS:STACK
START :
MOV AX , DATA A
MOV DS , AX
MOV AX , 0
MOV CX , 100
LOP1 :
ADD AX , CX
LOOP LOP1
MOV SUM , AX
MOV AH , 4CH
INT 21H
CODE ENDS
END START