(y%4==0)&&(y%100!=0)||(y%400==0)怎样实现
INY: MOV DX,OFFSET MSG1
CALL DSPMESS
MOV DX,OFFSET INPUTY ;输入Y
MOV AH,0AH
INT 21H
MOV SI,OFFSET INPUTY+1
CALL DTOBIN
MOV BX,AX
CMP BX,1899
JBE INY
CMP BX,3000
JA INY
INM:
MOV DX,OFFSET MSG2
CALL DSPMESS
MOV DX,OFFSET INPUTM ;输入Y
MOV AH,0AH
INT 21H
MOV SI,OFFSET INPUTM+1
CALL DTOBIN
MOV CX,AX
CMP CX,0
JBE INM
CMP CX,12
JA INM
IND: CALL CRLF
MOV DX,OFFSET MSG3
CALL DSPMESS
MOV SI,OFFSET INPUTD ;输入Y
MOV AH,0AH
INT 21H
MOV SI,OFFSET INPUTD+1
CALL DTOBIN
TEST AL,0C8H
JZ RUNY
TEST AL,04H
JZ NEXT2
NEXT2:
TEST AL,64H
JZ RUNY
JMP PINY
RUNY:
LEA DI,DATA2
ADD DI,CX
DEC DI
DEC DI
MOV DX,WORD PTR [DI]
CMP AX,DX
JA IND
CMP AX,0
JBE IND
PINY:
LEA DI,DATA1
ADD DI,CX
DEC DI
DEC DI
MOV DX,WORD PTR [DI]
CMP AX,DX
JA IND
CMP AX,0
JBE IND