8 路抢答器
8 路抢答器 PCB 抢答器 ORG 0000H LJMP L0100 org 23h ljmp L04A0 DB 'THIS IS SZN1.ASM;' ORG 100H L0100: MOV SP,#50H MOV R7,#0FFH L0105: MOV R6,#10H L0107: DJNZ R6,$ DJNZ R7,L0105 MOV PSW,#00H MOV TMOD,#22H MOV T H1,#0FAH MOV SCON,#0D0H MOV PCON,#80H MOV IP,#10H MOV P1,#0BFH MOV 21H,#00H ANL 22H,#60H MOV 20H,#00H MOV 2FH,#00H CLR 00H CLR 01H CLR 14H CLR T0 SETB T1 CLR T1 SETB TR1 SETB ES SETB EX0 SETB EA MOV 2FH,#00H MOV 20H,#00H S01: MOV DPTR,#3000H MOVX A,@DPTR CLR C SUBB A,#46H JZ L015D CLR T1 MOV P1,#00H MOV 31H,#80H L01: MOV 30H,#04H L02: MOV DPTR,#0700H MOV P1,#00H H1,#0FAH MOV SCON,#0D0H MOV PCON,#80H MOV IP,#10H MOV P1,#0BFH MOV 21H,#00H ANL 22H,#60H MOV 20H,#00H MOV 2FH,#00H CLR 00H CLR 01H CLR 14H CLR T0 SETB T1 CLR T1 SETB TR1 SETB ES SETB EX0 SETB EA MOV 2FH,#00H MOV 20H,#00H S01: MOV DPTR,#3000H MOVX A,@DPTR CLR C SUBB A,#46H JZ L015D CLR T1 MOV P1,#00H MOV 31H,#80H L01: MOV 30H,#04H L02: MOV DPTR,#0700H MOV P1,#00H
用户评论