#

Instruction

Words

Bytes

Cycles

Total cycles

1

push r0

1

2

2

2

2

in r0, SREG

1

2

1

1

3

rcall .+CLEAR_CODE

1

2

3

79,721

4

push r31

1

2

2

2

5

push r30

1

2

2

2

6

; ldi instruction dynamically added

1

2

1

1

7

; ldi instruction dynamically added

1

2

1

1

8

rcall .+PRINT_CODE

1

2

3

70,856

9

pop r30

1

2

2

2

10

pop r31

1

2

2

2

11

push r16

1

2

2

2

12

push r25

1

2

2

2

13

ldi r16, 4; wait 4 times about 250 ms

1

2

1

1

14

ldi r25, 250

1

2

1

4

15

rcall .+WAIT_CODE

1

2

3

16,153,064

16

dec r16

1

2

1

4

17

brne wait_loop

1

2

1, 2

7

18

pop r25

1

2

2

2

19

pop r16

1

2

2

2

20

out SREG, r0

1

2

1

1

21

pop r0

1

2

2

2

Total

21

42

-

16,303,681