Bismillahir Rahmanir Rahim
Solution:
if 1 include mylib1.lib endif mydata segment ar db 21,22,23,24,25 sum db 0 count EQU 5 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 cx,count mov si, offset ar mov al, sum forr: add al,[si] inc si loop forr endforr: mov sum,al mov bh,00 mov bl,sum printd mov ax, 4c00h int 21h printfd mycode ends end start