Bismillahir Rahmanir Rahim
Solution:
if 1 include mylib1.lib endif mydata segment arr db 'IUBAT' sum db ? 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 cl,count mov al,0 mov bx,0000 back: add al,[arr+bx] inc bx dec cl jnz back mov sum,al mov ah,00 mov cL,count div cL push ax mov bh , 0 mov bl ,aL printd pop ax mov bh , 0 mov bl ,ah printd mov ax, 4c00h int 21h printfd mycode ends end start