看看这个程序那里有问题
DATA SEGMENTDATA1 DB 25, 7, 1
DATA ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATA
START:
MOV AX,DATA
MOV AH,2AH
INT 21H
MOV DS,AX
MOV SI,offset DATA
MOV AL,DATA1[SI]
START1:
MOV AH,0
INT 16H
CMP AL,0
JB START1
CMP DL,AL
JB NEXT1
SUB DL,AL
NEXT1:
ADD DL,30
SUB DL,AL
DEC DH
MOV [DI],DL
MOV AX,[DI]
PUSH AX
INC SI
START2:
MOV AL,DATA1[SI]
MOV AH,0
INT 16H
CMP AL,0
JB START2
CMP DH,AL
JB NEXT2
SUB DH,AL
NEXT2:
ADD DH,12
SUB DH,AL
DEC CX
MOV [DI],DH
MOV BX,[DI]
PUSH BX
INC SI
START3:
MOV AL,DATA1[SI]
MOV AH,0
INT 16H
CMP AL,0
JB START3
MOV [BP],AL
CMP CX,[BP]
JB START3
SUB CX,[BP]
PUSH CX
POP CX
POP BX
POP AX
DONE:
MOV AH,9
INT 21H
MOV AH,4CH
INT 21H
CODES ENDS
END START