1 | //*********************************************************************
|
2 | void light_wave(uint8_t Color,uint8_t position)
|
3 | {
|
4 | Color = 4;
|
5 | switch(position)
|
6 | 7a: e6 2f mov r30, r22
|
7 | 7c: f0 e0 ldi r31, 0x00 ; 0
|
8 | 7e: e1 31 cpi r30, 0x11 ; 17
|
9 | 80: f1 07 cpc r31, r17
|
10 | 82: b0 f5 brcc .+108 ; 0xf0 <light_wave+0x76>
|
11 | 84: e5 5f subi r30, 0xF5 ; 245
|
12 | 86: ff 4f sbci r31, 0xFF ; 255
|
13 | 88: 09 94 ijmp
|
14 | {
|
15 | case 0 : Send_Color(Color,0x01);
|
16 | 8a: 61 e0 ldi r22, 0x01 ; 1
|
17 | 8c: 84 e0 ldi r24, 0x04 ; 4
|
18 | 8e: eb df rcall .-42 ; 0x66 <Send_Color>
|
19 | case 1 : Send_Color(Color,0x02);
|
20 | 90: 62 e0 ldi r22, 0x02 ; 2
|
21 | 92: 84 e0 ldi r24, 0x04 ; 4
|
22 | 94: e8 df rcall .-48 ; 0x66 <Send_Color>
|
23 | case 2 : Send_Color(Color,0x04);
|
24 | 96: 64 e0 ldi r22, 0x04 ; 4
|
25 | 98: 84 e0 ldi r24, 0x04 ; 4
|
26 | 9a: e5 df rcall .-54 ; 0x66 <Send_Color>
|
27 | case 3 : Send_Color(Color,0x08);
|
28 | 9c: 68 e0 ldi r22, 0x08 ; 8
|
29 | 9e: 84 e0 ldi r24, 0x04 ; 4
|
30 | a0: e2 df rcall .-60 ; 0x66 <Send_Color>
|
31 | case 4 : Send_Color(Color,0x10);
|
32 | a2: 60 e1 ldi r22, 0x10 ; 16
|
33 | a4: 84 e0 ldi r24, 0x04 ; 4
|
34 | a6: df df rcall .-66 ; 0x66 <Send_Color>
|
35 | case 5 : Send_Color(Color,0x20);
|
36 | a8: 60 e2 ldi r22, 0x20 ; 32
|
37 | aa: 84 e0 ldi r24, 0x04 ; 4
|
38 | ac: dc df rcall .-72 ; 0x66 <Send_Color>
|
39 | case 6 : Send_Color(Color,0x40);
|
40 | ae: 60 e4 ldi r22, 0x40 ; 64
|
41 | b0: 84 e0 ldi r24, 0x04 ; 4
|
42 | b2: d9 df rcall .-78 ; 0x66 <Send_Color>
|
43 | case 7 : Send_Color(Color,0x80);
|
44 | b4: 60 e8 ldi r22, 0x80 ; 128
|
45 | b6: 84 e0 ldi r24, 0x04 ; 4
|
46 | b8: d6 df rcall .-84 ; 0x66 <Send_Color>
|
47 | case 8 : Send_Color(Color,0xFF);
|
48 | ba: 6f ef ldi r22, 0xFF ; 255
|
49 | bc: 84 e0 ldi r24, 0x04 ; 4
|
50 | be: d3 df rcall .-90 ; 0x66 <Send_Color>
|
51 | case 9 : Send_Color(Color,0x80);
|
52 | c0: 60 e8 ldi r22, 0x80 ; 128
|
53 | c2: 84 e0 ldi r24, 0x04 ; 4
|
54 | c4: d0 df rcall .-96 ; 0x66 <Send_Color>
|
55 | case 10 : Send_Color(Color,0x40);
|
56 | c6: 60 e4 ldi r22, 0x40 ; 64
|
57 | c8: 84 e0 ldi r24, 0x04 ; 4
|
58 | ca: cd df rcall .-102 ; 0x66 <Send_Color>
|
59 | case 11 : Send_Color(Color,0x20);
|
60 | cc: 60 e2 ldi r22, 0x20 ; 32
|
61 | ce: 84 e0 ldi r24, 0x04 ; 4
|
62 | d0: ca df rcall .-108 ; 0x66 <Send_Color>
|
63 | case 12 : Send_Color(Color,0x10);
|
64 | d2: 60 e1 ldi r22, 0x10 ; 16
|
65 | d4: 84 e0 ldi r24, 0x04 ; 4
|
66 | d6: c7 df rcall .-114 ; 0x66 <Send_Color>
|
67 | case 13 : Send_Color(Color,0x08);
|
68 | d8: 68 e0 ldi r22, 0x08 ; 8
|
69 | da: 84 e0 ldi r24, 0x04 ; 4
|
70 | dc: c4 df rcall .-120 ; 0x66 <Send_Color>
|
71 | case 14 : Send_Color(Color,0x04);
|
72 | de: 64 e0 ldi r22, 0x04 ; 4
|
73 | e0: 84 e0 ldi r24, 0x04 ; 4
|
74 | e2: c1 df rcall .-126 ; 0x66 <Send_Color>
|
75 | case 15 : Send_Color(Color,0x02);
|
76 | e4: 62 e0 ldi r22, 0x02 ; 2
|
77 | e6: 84 e0 ldi r24, 0x04 ; 4
|
78 | e8: be df rcall .-132 ; 0x66 <Send_Color>
|
79 | case 16 : Send_Color(Color,0x01);
|
80 | ea: 61 e0 ldi r22, 0x01 ; 1
|
81 | ec: 84 e0 ldi r24, 0x04 ; 4
|
82 | ee: bb df rcall .-138 ; 0x66 <Send_Color>
|
83 | default : Send_Color(0x00,0x00);
|
84 | f0: 60 e0 ldi r22, 0x00 ; 0
|
85 | f2: 80 e0 ldi r24, 0x00 ; 0
|
86 | f4: b8 df rcall .-144 ; 0x66 <Send_Color>
|
87 | f6: 08 95 ret
|