YELLOW2: MOV DX,D8255A
MOV AL,11011110B ;2黄1红 OUT DX,AL CALL WORK3
MOV DX,D8255A
MOV AL,11111110B ;2号黄灯灭 OUT DX,AL
MOV AH,06H
MOV DL,0FFH ;判断是否有键按下,有则转ppp
JZ PPP
JMP SHOW1
PPP: MOV AX,4C00H INT 21H RET
WORK1 ENDP
WORK2 PROC NEAR MOV SEC,60 push cx mov cl,01 SHOW2:
CALL DELAY1
CALL CLEAR_LED ;清空RAM call show CMP SEC,10 JNZ CONTINUE MOV SEC,60 dec cl cmp cl,00 jE over
CONTINUE: DEC SEC JMP SHOW2
over:
pop cx