.INCLUDE "m8def.inc"
 
 ldi R17, high(RAMEND)
 
 ldi R16, low(RAMEND)
 
 out SPH, R17
 
 out SPL, R16
 
 ldi R16, 0xFF
 
 out DDRD, R16
 
 out DDRC, R16
 
 out DDRB, R16
 
 Petla:
 
 ldi R16, 0b11111111
 
 out PORTD, R16
 
 out PORTC, R16
 
 out PORTB, R16
 
 rcall opoznienie
 
 ldi R16, 0b00000000
 
 out PORTD, R16
 
 out PORTC, R16
 
 out PORTB, R16
 
 rcall opoznienie
 
 rjmp Petla
 
 opoznienie:
 
 ldi R16, 0x02
 
 czekaj0:
 
 ldi R17, 0xFF
 
 nop
 
 czekaj1:
 
 ldi R18, 0xFF
 
 czekaj2:
 
 nop
 
 dec R18
 
 brne czekaj2
 
 dec R17
 
 brne czekaj1
 
 dec R16
 
 brne czekaj0
 
 ret
 
