流程思路不对,判断大小跳转时指令用错,最后没有结束中断。
DATA SEGMENT
XIAO DB 0
DA DB 0
SHU DB 0
QT DB 0
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MASK1: MOV AH,1
INT 21H
CMP AL,0DH
JZ EXIT
CMP AL,'0'
JB NEXT
CMP AL,'9'
JA NEXT1
INC SHU
NEXT1: CMP AL,'A'
JB NEXT
CMP AL,'Z'
JA NEXT2
INC DA
NEXT2: CMP AL,'a'
JB NEXT
CMP AL,'z'
JA NEXT
INC XIAO
NEXT: INC QT
JMP MASK1
EXIT:
MOV AH,4CH
INT 21H
CODE ENDS
END START