I am having trouble printing the value in al after I divide. I keep getting a weird ascii character, not the 3 like im supposed to be getting. If I put in a instuction mov al,5 it prints perfectly. Any help will be appreciated. Here is the code:
mov ax,32511
mov cx,10000
div cx ;divide 7eff by 2710. Result in al will be 3.
add al,'0' ;convert to ascii
mov ah,2 ;print
mov dl,al
int 21h