ORG 00H MAIN: CALL CON1 CALL CON2 JMP MAIN CON1:;SANG DAN MOV P1,#00000000B CALL DELAY MOV P1,#10000000B CALL DELAY MOV P1,#11000000B CALL DELAY MOV P1,#11100000B CALL DELAY MOV P1,#11110000B CALL DELAY MOV P1,#11111000B CALL DELAY MOV P1,#11111100B CALL DELAY MOV P1,#11111110B CALL DELAY MOV P1,#11111111B CALL DELAY RET CON2:;TAT DAN MOV P1,#11111111B CALL DELAY MOV P1,#01111111B CALL DELAY MOV P1,#00111111B CALL DELAY MOV P1,#00011111B CALL DELAY MOV P1,#00001111B CALL DELAY MOV P1,#00000111B CALL DELAY MOV P1,#00000011B CALL DELAY MOV P1,#00000001B CALL DELAY MOV P1,#00000000B CALL DELAY RET DELAY: MOV R0,#200 LAP: MOV R1,#200 LAP2: NOP NOP NOP DJNZ R1,LAP2 DJNZ R0,LAP RET END
HỌC VÌ BẢN THÂN - HỌC VÌ GIA ĐÌNH - HỌC VÌ ĐẤT NƯỚC (NOW OR NEVER !)