LCALL STOP
RET
INT01: SETB P1.6
RET
INT02: SETB P1.6
RET
INT03: SETB P1.6
RET
INT04: SETB P1.5
RET
INT05: SETB P1.5
RET
INIT1: PUSH PSW
PUSH ACC ANL P2 #0EH
NOP
KEY: JNB P2.1, K11
SJMP KEY K11: LCALL DELAY
JNB P2.1, K12 SJMP KEY K12: JB P2.1, K13
SJMP KEY
K13: JNB P2.1, NEXT1
LCALL INIT11 NEXT7: JNB P2.2, K22
SJMP KEY K21: LCALL DELAY
JNB P2.2, K22 SJMP KEY K22: JB P2.2, K22
SJMP K22
K23: JNB P2.2, NEXT8
LCALL INIT12 NEXT8: POP ACC
- 25 -
POP PSW
RETI
INIT11: LCALL STOP
RET
INIT12: RE
- 26 -