I am writing a code for adding a series of 8 bit numbers.
But it is displaying absurd characters in output.
What may be the error ?
ASSUME cs:code, ds:data
data segment
LIST db 23H, 46H ,02H,12H
COUNT EQU 04d
;RESULT DB 01h DUP(?)
data ENDS
code segment
start: mov ax,data
mov ds,ax
xor ax,ax
xor bx,bx
xor dx,dx
clc
mov si,OFFSET LIST
mov cx,COUNT
add1: mov bl,[si]
add ax,bx
daa
inc si
dec cl
jnz add1
mov dx,ax
[B]mov ah,02h
int 21h[/B]
mov ah, 4ch
int 21h
code ends
end start