I am writing this assembly program in 8086, but it is not working properly. The quotient and remainder prints out as some random symbols even though I use single digit numbers. Can someone please point out the errors/mistakes in the program? Thank you.
.model small
.stack 50h
.data
Divisor db ?
Dividend db ?
Quotient db ?
Remainder db ?
.code
main_method proc
mov ax, @data
mov ds, ax
mov ah, 01
int 21h
sub al, 48
mov Divisor, al
mov ah, 01
int 21h
sub al, 48
mov Dividend, al
mov bl, 00
mov al, 00
mov bl, Divisor
mov al, Dividend
div bl
mov Quotient, al
mov Remainder, ah
mov dl, Quotient
add dl, 48
mov ah, 02
int 21h
mov dl, Remainder
add dl, 48
mov ah, 02
int 21h
mov ah, 4ch
int 21h
main_method endp
end main_method