.device AT90S1200 .nolist .include "C:\Program Files (x86)\Atmel\AVR Tools\AVRAssembler\Appnotes\1200def.inc" .list ;================================================ .def count=R17 .def count2=R18 ;========================== ; 10,000 èòåðàöèé ;start: ; LDI count2,100 ;loop1: LDI count,100 ;loop2: DEC count ; BRNE loop2 ; DEC count2 ; BRNE loop1 ;RJMP start ;======== ; 1 ñåêóíäà .def count3=R19 ;start: ; LDI count3, 132 ;loop1: LDI count2,100 ;loop2: LDI count,100 ;loop3: DEC count ; BRNE loop3 ; DEC count2 ; BRNE loop2 ; DEC count3 ; BRNE loop1 ;RJMP start ;================ ; 1 ñåêóíäà + nop â êàæäîé èòåðàöèè start: LDI count3, 132 loop1: LDI count2,100 loop2: LDI count,100 loop3: DEC count nop BRNE loop3 DEC count2 BRNE loop2 DEC count3 BRNE loop1 RJMP start