This is my code and every time i add 2 numbers there's an excess number digit 1 on result
can someone help me?
.model small
.stack 200
.data
msg db 10,13,'Enter first no. : $'
msg2 db 10,13,'Enter second no. : $'
msg3 db 10,13,'Answer : $'
.code
start:
mov ax,@data
mov ds,ax
lea dx,msg
mov ah,09h
int 21h
Comment @
mov ah,01h
int 21h
and al,0Fh
mov cl,04h
rol al,cl
mov bh,al
mov ah,01h
int 21h
and al,0Fh
add bh,al
@
mov ah,01h
int 21h
and al,0Fh
mov cl,04h
rol al,cl
mov bl,al
mov ah,01h
int 21h
and al,0Fh
add bl,al
lea dx,msg2
mov ah,09h
int 21h
Comment @
mov ah,01h
int 21h
and al,0Fh
mov cl,04h
rol al,cl
mov ch,al
mov ah,01h
int 21h
and al,0Fh
add ch,al
@
mov ah,01h
int 21h
and al,0Fh
mov cl,04h
rol al,cl
mov cl,al
mov ah,01h
int 21h
and al,0Fh
add cl,al
mov al,cl
add al,bl
daa
mov bl,al
JNC next
add bh,01h
next: mov al,ch
add al,bh
daa
mov bh,al
lea dx,msg3
mov ah,09h
int 21h
JNC skip
mov dl,31h
mov ah,02h
int 21h
skip: mov al,bh
mov cl,04h
rol al,cl
and al,0Fh
add al,30h
mov dl,al
mov ah,02h
int 21h
mov al,bh
and al,0Fh
add al,30h
mov dl,al
mov ah,02h
int 21h
mov al,bl
mov cl,04h
rol al,cl
and al,0Fh
add al,30h
mov dl,al
mov ah,02h
int 21h
mov al,bl
and al,0Fh
add al,30h
mov dl,al
mov ah,02h
int 21h
.exit
end start