.include "tn45def.inc" .def temp = R16 .cseg .org 0 rjmp reset delay: ldi temp, 0 ; 1 cycle delayloop: dec temp ; 1 cycle brne delayloop ; 2 cycles when true, 1 cycle when false ret ; 4 cycles reset: sbi DDRB, PB2 loop: sbi PORTB, PB2 ; 2 cycles rcall delay ; 3 cycles cbi PORTB, PB2 ; 2 cycles rcall delay ; 3 cycles rjmp loop ; 2 cycles