cmp bl,7 jnz CASE8 mov al,07H JMP SHW
CASE8: cmp bl,8 jnz CASE9 mov al,7FH JMP SHW
CASE9: cmp bl,9 jnz SHW
MOV AL,6FH
SHW:
MOV DX,D8279 OUT DX,AL RET
TRANS ENDP
DELAY1 PROC NEAR PUSH DX PUSH Ax jshi:
MOV DX,D8255B IN AL,DX
AND AL,00000001B CMP AL,SIGN1 JZ jshi
MOV SIGN1,AL
POP Ax POP DX
RET
DELAY1 ENDP
DELAY10 PROC NEAR PUSH AX PUSH CX
检测PB0 时钟信号,是否到一秒了 ;