为什么我的程序运行后什么都没有,没显示数字?
stack1 segment
dw 20h dup(0)
stack1 ends
code segment
assume cs:code,ss:stack1
start:mov ax,stack1
mov ss,ax
mov sp,64
mov ax,0f000h
mov ds,ax
mov si,0
mov cx,200
mov ax,0
clc
s: add al,[si]
adc ah,0
inc si
loop s
mov dx,0
call divdw ;求每位数
call newline
mov ax,0
mov dx,0
mov cx,100
clc
mov si,0
s1: add ax,[si]
adc dx,0
inc si
inc si
loop s1
call divdw
mov ax,4c00h
int 21h
divdw proc ;除法,防止溢出
push cx
push bx
push di
mov di,0
divdw1: mov bx,ax
mov ax,dx
mov dx,0
mov cx,10
div cx
push ax ;存放高位商
mov ax,bx
div cx
mov cx,dx
pop dx
push cx
inc di
add dx,ax
jz show
jmp divdw1
show: mov cx,di
show1: pop dx
add dl,30h
mov ah,02h
int 21h
loop show1
pop di
pop bx
pop cx
ret
divdw endp
newline proc ;换行
push dx
push ax
mov dl,0dh
mov ah,02h
int 21h
mov dl,0ah
mov ah,02h
int 21h
pop ax
pop dx
ret
newline endp
code ends
end start