ORG 0000H
LJMP L0100
ORG 0100H
L0100: JNB P1.0,L010f
nn b JNB P1.1,L0117
JNB P1.2,L011f
JNB P1.3,L0127
LJMP L0100
L010f: MOV R7,#00H
LCALL L012f
LJMP L0100
L0117: MOV R7,#01H
LCALL L017b
LJMP L0100
L011f: MOV R7,#02H
LCALL L01b0
LJMP L0100
L0127: MOV R7,#03H
LCALL L01f8
LJMP L0100
L012f: JNB P1.1,L013b
JNB P1.2,L0140
JNB P1.3,L0145
LJMP L014a
L013b: MOV R7,#01H
LJMP L017a
L0140: MOV R7,#02H
LJMP L017a
L0145: MOV R7,#03H
LJMP L017a
L014a: CJNE R7,#00H,L017a
MOV R0,#00H
L014f: MOV P0,#0ffH
MOV P2,#0ffH
MOV A,P2
CPL A
MOV R3,A
L0159: DEC R3
CJNE R3,#0ffH,L0159
INC R0
INC R0
CJNE R0,#0feH,L014f
MOV R0,#00H
L0164: MOV P0,#00H
MOV P2,#0ffH
MOV A,P2
CPL A
MOV R3,A
L016e: DEC R3
CJNE R3,#0ffH,L016e
INC R0
INC R0
CJNE R0,#0feH,L0164
LJMP L012f
L017a: RET
L017b: JNB P1.0,L0187
JNB P1.2,L018c
JNB P1.3,L0191
LJMP L0196
L0187: MOV R7,#00H
LJMP L01af
L018c: MOV R7,#02H
LJMP L01af
L0191: MOV R7,#03H
LJMP L01af
L0196: CJNE R7,#01H,L01af
MOV R0,#0ffH
L019b: MOV P0,R0
MOV P2,#0ffH
MOV A,P2
CPL A
MOV R3,A
L01a4: DEC R3
CJNE R3,#0ffH,L01a4
INC R0
CJNE R0,#0ffH,L019b
LJMP L017b
L01af: RET
L01b0: JNB P1.0,L01bc
JNB P1.1,L01c1
JNB P1.3,L01c6
LJMP L01cb
L01bc: MOV R7,#00H
LJMP L01f7
L01c1: MOV R7,#01H
LJMP L01f7
L01c6: MOV R7,#03H
LJMP L01f7
L01cb: CJNE R7,#02H,L01f7
MOV R0,#00H
L01d0: MOV P0,R0
MOV P2,#0ffH
MOV A,P2
CPL A
MOV R3,A
L01d9: DEC R3
CJNE R3,#0ffH,L01d9
INC R0
INC R0
CJNE R0,#0feH,L01d0
L01e2: MOV P0,R0
MOV P2,#0ffH
MOV A,P2
CPL A
MOV R3,A
L01eb: DEC R3
CJNE R3,#0ffH,L01eb
DEC R0
DEC R0
CJNE R0,#00H,L01e2
LJMP L01b0
L01f7: RET
L01f8: JNB P1.0,L0204
JNB P1.1,L0209
JNB P1.2,L020e
LJMP L0213
L0204: MOV R7,#00H
LJMP L0231
L0209: MOV R7,#01H
LJMP L0231
L020e: MOV R7,#02H
LJMP L0231
L0213: CJNE R7,#03H,L0231
MOV R0,#00H
L0218: MOV A,R0
MOV DPTR,#00H
MOVC A,@A+DPTR
MOV P0,A
INC R0
MOV P2,#0ffH
MOV A,P2
CPL A
MOV R3,A
L0227: DEC R3
CJNE R3,#0ffH,L0227
CJNE R0,#0ffH,L0218
LJMP L01f8
L0231: RET
L0232: DB 080H,082H,084H,086H,088H,08aH,08cH,08eH
DB 090H,092H,094H,096H,098H,09aH,09cH,09eH
DB 0a0H,0a2H,0a4H,0a6H,0a8H,0aaH,0abH,0adH
DB 0afH,0b1H,0b2H,0b4H,0b6H,0b7H,0b9H,0baH
DB 0bcH,0bdH,0bfH,0c0H,0c1H,0c3H,0c4H,0c5H
DB 0c6H,0c8H,0c9H,0caH,0cbH,0ccH,0cdH,0ceH
DB 0ceH,0cfH,0d0H,0d1H,0d1H,0d2H,0d2H,0d3H
DB 0d3H,0d4H,0d4H,0d4H,0d4H,0d5H,0d5H,0d5H
DB 0d5H,0d5H,0d5H,0d5H,0d4H,0d4H,0d4H,0d4H
DB 0d3H,0d3H,0d2H,0d2H,0d1H,0d1H,0d0H,0cfH
DB 0ceH,0ceH,0cdH,0ccH,0cbH,0caH,0c9H,0c8H
DB 0c6H,0c5H,0c4H,0c3H,0c1H,0c0H,0bfH,0bdH
DB 0bcH,0baH,0b9H,0b7H,0b6H,0b4H,0b2H,0b1H
DB 0afH,0adH,0abH,0aaH,0a8H,0a6H,0a4H,0a2H
DB 0a0H,09eH,09cH,09aH,098H,096H,094H,092H
DB 090H,08eH,08cH,08aH,088H,086H,084H,082H
DB 080H,07dH,07bH,079H,077H,075H,073H,071H
DB 06fH,06dH,06bH,069H,067H,065H,063H,061H
DB 05fH,05dH,05bH,059H,057H,055H,054H,052H
DB 050H,04eH,04dH,04bH,049H,048H,046H,045H
DB 043H,042H,040H,03fH,03eH,03cH,03bH,03aH
DB 039H,037H,036H,035H,034H,033H,032H,031H
DB 031H,030H,02fH,02eH,02eH,02dH,02dH,02cH
DB 02cH,02bH,02bH,02bH,02bH,02aH,02aH,02aH
DB 02aH,02aH,02aH,02aH,02bH,02bH,02bH,02bH
DB 02cH,02cH,02dH,02dH,02eH,02eH,02fH,030H
DB 031H,031H,032H,033H,034H,035H,036H,037H
DB 039H,03aH,03bH,03cH,03eH,03fH,040H,042H
DB 043H,045H,046H,048H,049H,04bH,04dH,04eH
DB 050H,052H,054H,055H,057H,059H,05bH,05dH
DB 05fH,061H,063H,065H,067H,069H,06bH,06dH
DB 06fH,071H,073H,075H,077H,079H,07bH,07dH
END
一周热门 更多>