Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jmp start2
- db 10
- db de ;9
- db fe ;8
- db 8a ;7
- db fc ;6
- db dc ;5
- db 4e ;4
- db 9e ;3
- db b6 ;2
- db 0a ;1
- db fa ;0
- db 84 ;Lewa red, prawa green
- db 30 ;Lewa ziel, prawa red
- org 10
- mov al,[cl]
- out 02
- mov al,[bl]
- inc al
- out 02
- inc bl
- dec al
- cmp al,[0d];
- jnz Nie_ma_zera
- mov bl,03
- mov al,[bl]
- inc al
- out 02
- inc cl
- mov al,[cl]
- cmp al,[0d]
- jz start
- out 02
- inc bl
- Nie_ma_zera:
- iret
- start:
- cmp DL,84
- JZ zmiana_swiatel
- mov bl,03
- mov cl,0A
- mov al,fa
- inc al
- out 02
- mov al,9e
- out 02
- dec DL
- sti
- sekunda:
- nop
- nop
- nop
- jmp sekunda
- start2:
- mov DL,0E
- mov Al,84
- out 01
- jmp start
- zmiana_swiatel:
- mov al,30
- out 01
- inc DL
- jmp start
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement