主题:做出了程序但是为什么输不出结果
显示该字符串中,数字的个数、大写字母的个数、小写字母的个数和其他符号的个数
data segment
letter db 0
digit db 0
other db 0
data ends
code segment
main proc far
assume cs:code ,ds:data
start:mov letter,0
mov digit,0
mov other,0
input:mov ah,01h
int 21h
cmp al,0dh
jz exit
cmp al,'A'
JB num
CMP AL,'Z'
ja next
inc letter
jmp input
num: cmp al,'0'
jb oth
cmp al,'9'
ja oth
inc digit
jmp input
next: cmp al,'a'
jb oth
cmp al,'z'
ja oth
inc letter
jmp input
oth:inc other
jmp input
exit: mov ah,4ch
int 21h
main endp
code ends
end start
这个程序为什么输不出结果啊,帮帮我大虾
data segment
letter db 0
digit db 0
other db 0
data ends
code segment
main proc far
assume cs:code ,ds:data
start:mov letter,0
mov digit,0
mov other,0
input:mov ah,01h
int 21h
cmp al,0dh
jz exit
cmp al,'A'
JB num
CMP AL,'Z'
ja next
inc letter
jmp input
num: cmp al,'0'
jb oth
cmp al,'9'
ja oth
inc digit
jmp input
next: cmp al,'a'
jb oth
cmp al,'z'
ja oth
inc letter
jmp input
oth:inc other
jmp input
exit: mov ah,4ch
int 21h
main endp
code ends
end start
这个程序为什么输不出结果啊,帮帮我大虾