SOURCE CODE:
.model small
.stack 100h
.code
main proc
mov ax,635
mov bx,8
mov dx,0
mov cx,0
lbl1:
div bx
push dx
mov dx,0
inc cx
cmp ax,0
jnz lbl1
lbl2:
pop dx
add dx,30h
mov ah,2
int 21h
loop lbl2
mov ax,4c00h
int 21h
main endp
end main
.model small
.stack 100h
.code
main proc
mov ax,635
mov bx,8
mov dx,0
mov cx,0
lbl1:
div bx
push dx
mov dx,0
inc cx
cmp ax,0
jnz lbl1
lbl2:
pop dx
add dx,30h
mov ah,2
int 21h
loop lbl2
mov ax,4c00h
int 21h
main endp
end main