Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- G0 EQU P2.0; PRZYPISANIE ALIASU PORTOM (DIOIDY I GUZIKI)
- G1 EQU P2.1
- G2 EQU P2.2
- G3 EQU P2.3
- dioda0 EQU P2.4
- dioda1 EQU P2.5
- dioda2 EQU P2.6
- dioda3 EQU P2.7
- CSEG
- ORG 0000H
- JMP START
- ORG 0060H
- Start:
- SETB dioda0
- SETB dioda1
- SETB dioda2
- SETB dioda3
- Czekaj0:
- JNB G0, Czekaj1
- JNB G1, Czekaj2
- JNB G2, Czekaj3
- JNB G3, Czekaj4
- JMP Czekaj0
- Cekaj1:
- CLR Dioda0
- JNB G0,Czekaj1
- JMP Start
- Cekaj2:
- CLR Dioda1
- JNB G0,Czekaj2
- JMP Start
- Cekaj3:
- CLR Dioda2
- JNB G0,Czekaj3
- JMP Start
- Cekaj4:
- CLR Dioda3
- JNB G0,Czekaj4
- JMP Start
- Koniec:
- JMP Koniec
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement