.include "m8def.inc" ldi r16, HIGH (RAMEND) out SPH, r16 ldi r16, LOW (RAMEND) out SPL, r16 ldi r16, 0xff out DDRD, r16 ldi r16, 4 loop1: out PORTD, r16 rcall sleep inc r16 cpi r16, 0x0a brlt loop1 ldi r16, 0x00 rjmp loop1 loopend: rjmp loopend sleep: push r16 push r17 push r18 ldi r16, 1 sleeploop1: inc r16 ldi r17, 1 sleeploop2: inc r17 ldi r18, 1 sleeploop3: inc r18 cpi r18, 0x2f brlt sleeploop3 cpi r17, 0x2f brlt sleeploop2 cpi r16, 0x2f brlt sleeploop1 pop r18 pop r17 pop r16 ret
https://www.ituenix.de/html/vid/IMG_3679.mov