Bismillahir Rahmanir Rahim
solution:
if 1 include mylib1.lib endif mydata segment sum dw 0000h count equ 99 mydata ends mystack segment db 100 dup(0) mystack ends mycode segment assume cs:mycode, ds:mydata, ss:mystack start: mov ax, seg mydata mov ds, ax mov ax, seg mystack mov ss, ax mov ch, 00 mov cl,count mov dx,sum forr: add dx,cx dec cl jnz forr endforr: mov sum,dx mov bx,sum printd mov ax, 4c00h int 21h printfd mycode ends end start