Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .include "m128def.inc"
- .def tmp=r17
- .org 0x0
- jmp start
- .org 0x100
- start:
- ldi tmp, 0b_1111_0000
- out DDRD, tmp
- out DDRB, tmp
- clr tmp
- ldi tmp, 1
- ciklus:
- out PORTB, tmp
- swap tmp
- out PORTD, tmp
- swap tmp ;BAB
- ror tmp
- call delayloop
- jmp ciklus
- ;-------mivanrutiiiin-------
- delayloop:
- ldi r20, 0b10100100
- ldi r21, 0b11110001
- ldi r22, 0b11101100
- delay:
- dec r20
- brne delay
- dec r21
- brne delay
- dec r22
- brne delay
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement