Hi to all,
I wrote a code, and it gives me divide overflow, but the issue here is that when I run the program trough the debugger it works fine, but when I run the program in the dos mode it gives me Divide overflow error. here the code:
prt_sig:
mov al,[bx+si]
mov ah,0
;the maximum digit in a number is 3
push cx
mov cx,3
pr:
xor dx,dx
push bx
mov bx,10
div bx
add dl,30h
pop bx
push dx
xor ah,ah
dec cx
cmp cx,0
jne pr
mov cx,3
prin:
pop dx
mov ah,02h
int 21h
loop prin
tnx