Escolar Documentos
Profissional Documentos
Cultura Documentos
jnb jnb jnb p3.2, p3.3, p3.4, p3.5, ledum leddois ledtres ledquatro 00h inicio
sjmp inicio ledum: mov p2,#01h mov r2,#30h contagirod: djnz r2,motord ljmp inicio motord: setb p1.1 lcall tempo clr p1.1 setb p1.2 lcall tempo clr p1.2 setb p1.3 lcall tempo clr p1.3 setb p1.4 lcall tempo clr p1.4 ljmp contagirod leddois: mov p2,#02h mov r2,#30h contagiroe: djnz r2,motore ljmp inicio motore: setb p1.4 lcall tempo clr p1.4 setb p1.3 lcall tempo clr p1.3 setb p1.2 lcall tempo clr p1.2 setb p1.1 lcall tempo clr p1.1 ljmp contagiroe ledtres: mov p2,#03h
setb p1.1 lcall tempo clr p1.1 setb p1.2 lcall tempo clr p1.2 setb p1.3 lcall tempo clr p1.3 setb p1.4 lcall tempo clr p1.4 ljmp botaotres ledquatro: mov p2,#03h setb p1.4 lcall tempo clr p1.4 setb p1.3 lcall tempo clr p1.3 setb p1.2 lcall tempo clr p1.2 setb p1.1 lcall tempo clr p1.1 ljmp botaoquatro tempo: tempo1: mov mov djnz djnz ret r0,#100h r1,#100h r1,$ r0, tempo1
end