.include "m32def.inc" ldi r16,0xff out ddra,r16 out ddrb,r16 out portd,r16 begin:ldi r20,0x00 out tccr1a,r20 ldi r20,0x41 out tccr1b,r20 l1: in r21,tifr sbrs r21,icf1 rjmp l1 in r23,icr1l in r24,icr1h out tifr,r21 l2: in r21,tifr sbrs r21,icf1 rjmp l2 out tifr,r21 in r22,icr1l sub r22,r23 out porta,r22 in r22,icr1h sbc r22,r24 out portb,r22 l3: rjmp l3