This code is meant to find the sum of numbers stored in an array. The result is symbol to be printed in ASCII. How do I print the text number instead of the symbol?
.MODEL SMALL
.stack 100h
.DATA
ARR db 10,20,30,40,50
sum db 0
.CODE
main proc
mov ax,@data
mov ds,ax
mov cx,5
mov ax,0
mov bx,offset ARR
repeat:add al,[bx]
inc bx
dec cx
jnz repeat
mov sum,al
mov dl,sum
mov ah,sum
mov ah, 02h
int 21h
main endp
END main
What do I need to change and add?