MAIN:
S1:MOV C,P3.1
JC S2
ACALL DL
LCALL STLOP1
STLOP1:MOV TEMP, #01
LCALL DISPLAY1
MOV P0,00H
MOV P2,00H
LCALL DELAY1
MOV TEMP, #01
LCALL DISPLAY1
MOV P0,00H
MOV P2,00H
LCALL DELAY1
MOV TEMP, #01
LCALL DISPLAY1
MOV P0,00H
MOV P2,00H
LCALL DELAY1
LJMP STAR
RETI
S2:MOV C ,P3.2
JC S3
ACALL DL
LCALL STLOP2
STLOP2:MOV TEMP,#02
LCALL DISPLAY1
MOV P0,00H
MOV P2,00H
LCALL DELAY1
MOV TEMP,#02
LCALL DISPLAY1
MOV P0,00H
MOV P2,00H
LCALL DELAY1
MOV TEMP,#02
LCALL DISPLAY1
MOV P0,00H
MOV P2,00H
LCALL DELAY1
LJMP STAR
RETI
S3:MOV C ,P3.3
JC S4
www.751com.cn LCALL DELAY1
MOV TEMP,#03
LCALL DISPLAY1
MOV P0,00H
MOV P2,00H
LCALL DELAY1
MOV TEMP,#03
LCALL DISPLAY1
MOV P0,00H
MOV P2,00H
LCALL DELAY1
LJMP STAR
RETI
S4:MOV C ,P3.4
JC S5
ACALL DL
LCALL STLOP4
STLOP4:MOV TEMP,#04
LCALL DISPLAY1
MOV P0,00H
MOV P2,00H
LCALL DELAY1