Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2248 | - | 1 | 1 .file "led.c" |
2 | 2 .arch atmega644 |
||
3 | 3 __SREG__ = 0x3f |
||
4 | 4 __SP_H__ = 0x3e |
||
5 | 5 __SP_L__ = 0x3d |
||
6 | 6 __tmp_reg__ = 0 |
||
7 | 7 __zero_reg__ = 1 |
||
8 | 8 .global __do_copy_data |
||
9 | 9 .global __do_clear_bss |
||
10 | 10 .global J17Mask |
||
11 | 11 .data |
||
12 | 14 J17Mask: |
||
13 | 15 0000 01 .byte 1 |
||
14 | 16 .global J17Blinkcount |
||
15 | 17 .global J17Blinkcount |
||
16 | 18 .section .bss |
||
17 | 21 J17Blinkcount: |
||
18 | 22 0000 00 .skip 1,0 |
||
19 | 23 .global J16Mask |
||
20 | 24 .data |
||
21 | 27 J16Mask: |
||
22 | 28 0001 01 .byte 1 |
||
23 | 29 .global J16Blinkcount |
||
24 | 30 .global J16Blinkcount |
||
25 | 31 .section .bss |
||
26 | 34 J16Blinkcount: |
||
27 | 35 0001 00 .skip 1,0 |
||
28 | 36 .global LED2_Timing |
||
29 | 37 .global LED2_Timing |
||
30 | 40 LED2_Timing: |
||
31 | 41 0002 0000 .skip 2,0 |
||
32 | 42 .global LED1_Timing |
||
33 | 43 .global LED1_Timing |
||
34 | 46 LED1_Timing: |
||
35 | 47 0004 0000 .skip 2,0 |
||
36 | 48 .text |
||
37 | 49 .global LED_Init |
||
38 | 51 LED_Init: |
||
39 | 52 /* prologue: frame size=0 */ |
||
40 | 53 /* prologue end (size=0) */ |
||
41 | 54 0000 87B1 in r24,39-0x20 |
||
42 | 55 0002 8C60 ori r24,lo8(12) |
||
43 | 56 0004 87B9 out 39-0x20,r24 |
||
44 | 57 0006 4298 cbi 40-0x20,2 |
||
45 | 58 0008 4398 cbi 40-0x20,3 |
||
46 | 59 000a 1092 0000 sts J16Blinkcount,__zero_reg__ |
||
47 | 60 000e 80E8 ldi r24,lo8(-128) |
||
48 | 61 0010 8093 0000 sts J16Mask,r24 |
||
49 | 62 0014 1092 0000 sts J17Blinkcount,__zero_reg__ |
||
50 | 63 0018 8093 0000 sts J17Mask,r24 |
||
51 | 64 /* epilogue: frame size=0 */ |
||
52 | 65 001c 0895 ret |
||
53 | 66 /* epilogue end (size=1) */ |
||
54 | 67 /* function LED_Init size 15 (14) */ |
||
55 | 69 .lcomm delay.0,1 |
||
56 | 70 .lcomm J16Bitmask.1,1 |
||
57 | 71 .lcomm J17Bitmask.2,1 |
||
58 | 72 .global LED_Update |
||
59 | 74 LED_Update: |
||
60 | 75 /* prologue: frame size=0 */ |
||
61 | 76 /* prologue end (size=0) */ |
||
62 | 77 001e 8091 0000 lds r24,delay.0 |
||
63 | 78 0022 8150 subi r24,lo8(-(-1)) |
||
64 | 79 0024 8F3F cpi r24,lo8(-1) |
||
65 | 80 0026 01F0 breq .L52 |
||
66 | 81 0028 8093 0000 sts delay.0,r24 |
||
67 | 82 002c 0895 ret |
||
68 | 83 .L52: |
||
69 | 84 002e 84E0 ldi r24,lo8(4) |
||
70 | 85 0030 8093 0000 sts delay.0,r24 |
||
71 | 86 0034 8091 0000 lds r24,MikroKopterFlags |
||
72 | 87 0038 85FF sbrs r24,5 |
||
73 | 88 003a 00C0 rjmp .L53 |
||
74 | 89 .L5: |
||
75 | 90 003c 4091 0000 lds r20,EE_Parameter+67 |
||
76 | 91 0040 4093 0000 sts J16Bitmask.1,r20 |
||
77 | 92 0044 6091 0000 lds r22,EE_Parameter+68 |
||
78 | 93 .L44: |
||
79 | 94 0048 6093 0000 sts J17Bitmask.2,r22 |
||
80 | 95 004c 5091 0000 lds r21,EE_Parameter+86 |
||
81 | 96 0050 252F mov r18,r21 |
||
82 | 97 0052 3327 clr r19 |
||
83 | 98 0054 24FF sbrs r18,4 |
||
84 | 99 0056 00C0 rjmp .L7 |
||
85 | 100 0058 8091 0000 lds r24,MotorenEin |
||
86 | 101 005c 8823 tst r24 |
||
87 | 102 005e 01F4 brne .L7 |
||
88 | 103 0060 25FF sbrs r18,5 |
||
89 | 104 0062 00C0 rjmp .L22 |
||
90 | 105 .L46: |
||
91 | 106 0064 429A sbi 40-0x20,2 |
||
92 | 107 0066 00C0 rjmp .L10 |
||
93 | 108 .L53: |
||
94 | 109 0068 8091 0000 lds r24,SenderOkay |
||
95 | 110 006c 8823 tst r24 |
||
96 | 111 006e 04F4 brge .L5 |
||
97 | 112 0070 4091 0000 lds r20,EE_Parameter+63 |
||
98 | 113 0074 4093 0000 sts J16Bitmask.1,r20 |
||
99 | 114 0078 6091 0000 lds r22,EE_Parameter+65 |
||
100 | 115 007c 00C0 rjmp .L44 |
||
101 | 116 .L7: |
||
102 | 117 007e 9091 0000 lds r25,EE_Parameter+64 |
||
103 | 118 0082 9B3F cpi r25,lo8(-5) |
||
104 | 119 0084 00F0 brlo .L11 |
||
105 | 120 0086 8091 0000 lds r24,Parameter_J16Timing |
||
106 | 121 008a 8D3D cpi r24,lo8(-35) |
||
107 | 122 008c 00F0 brlo .L11 |
||
108 | 123 008e 47FD sbrc r20,7 |
||
109 | 124 0090 00C0 rjmp .L46 |
||
110 | 125 .L22: |
||
111 | 126 0092 4298 cbi 40-0x20,2 |
||
112 | 127 0094 252F mov r18,r21 |
||
113 | 128 0096 3327 clr r19 |
||
114 | 129 0098 24FD sbrc r18,4 |
||
115 | 130 009a 00C0 rjmp .L54 |
||
116 | 131 .L24: |
||
117 | 132 009c 9091 0000 lds r25,EE_Parameter+66 |
||
118 | 133 00a0 9B3F cpi r25,lo8(-5) |
||
119 | 134 00a2 00F0 brlo .L28 |
||
120 | 135 00a4 8091 0000 lds r24,Parameter_J17Timing |
||
121 | 136 00a8 873E cpi r24,lo8(-25) |
||
122 | 137 00aa 00F0 brlo .L28 |
||
123 | 138 00ac 67FD sbrc r22,7 |
||
124 | 139 00ae 00C0 rjmp .L50 |
||
125 | 140 .L39: |
||
126 | 141 00b0 4398 cbi 40-0x20,3 |
||
127 | 142 00b2 0895 ret |
||
128 | 143 .L11: |
||
129 | 144 00b4 9B3F cpi r25,lo8(-5) |
||
130 | 145 00b6 00F0 brlo .L15 |
||
131 | 146 00b8 8091 0000 lds r24,Parameter_J16Timing |
||
132 | 147 00bc 8A30 cpi r24,lo8(10) |
||
133 | 148 00be 00F0 brlo .L55 |
||
134 | 149 .L15: |
||
135 | 150 00c0 8091 0000 lds r24,J16Blinkcount |
||
136 | 151 00c4 8150 subi r24,lo8(-(-1)) |
||
137 | 152 00c6 8F3F cpi r24,lo8(-1) |
||
138 | 153 00c8 01F0 breq .L56 |
||
139 | 154 00ca 8093 0000 sts J16Blinkcount,r24 |
||
140 | 155 .L10: |
||
141 | 156 00ce 252F mov r18,r21 |
||
142 | 157 00d0 3327 clr r19 |
||
143 | 158 00d2 24FF sbrs r18,4 |
||
144 | 159 00d4 00C0 rjmp .L24 |
||
145 | 160 .L54: |
||
146 | 161 00d6 8091 0000 lds r24,MotorenEin |
||
147 | 162 00da 8823 tst r24 |
||
148 | 163 00dc 01F4 brne .L24 |
||
149 | 164 00de 26FF sbrs r18,6 |
||
150 | 165 00e0 00C0 rjmp .L39 |
||
151 | 166 .L50: |
||
152 | 167 00e2 439A sbi 40-0x20,3 |
||
153 | 168 00e4 0895 ret |
||
154 | 169 .L28: |
||
155 | 170 00e6 9B3F cpi r25,lo8(-5) |
||
156 | 171 00e8 00F0 brlo .L32 |
||
157 | 172 00ea 8091 0000 lds r24,Parameter_J17Timing |
||
158 | 173 00ee 8A30 cpi r24,lo8(10) |
||
159 | 174 00f0 00F0 brlo .L57 |
||
160 | 175 .L32: |
||
161 | 176 00f2 8091 0000 lds r24,J17Blinkcount |
||
162 | 177 00f6 8150 subi r24,lo8(-(-1)) |
||
163 | 178 00f8 8F3F cpi r24,lo8(-1) |
||
164 | 179 00fa 01F0 breq .L58 |
||
165 | 180 00fc 8093 0000 sts J17Blinkcount,r24 |
||
166 | 181 0100 0895 ret |
||
167 | 182 .L55: |
||
168 | 183 0102 47FD sbrc r20,7 |
||
169 | 184 0104 00C0 rjmp .L22 |
||
170 | 185 0106 429A sbi 40-0x20,2 |
||
171 | 186 0108 00C0 rjmp .L10 |
||
172 | 187 .L57: |
||
173 | 188 010a 67FD sbrc r22,7 |
||
174 | 189 010c 00C0 rjmp .L39 |
||
175 | 190 010e 439A sbi 40-0x20,3 |
||
176 | 191 0110 0895 ret |
||
177 | 192 .L56: |
||
178 | 193 0112 8091 0000 lds r24,Parameter_J16Timing |
||
179 | 194 0116 8150 subi r24,lo8(-(-1)) |
||
180 | 195 0118 8093 0000 sts J16Blinkcount,r24 |
||
181 | 196 011c 8091 0000 lds r24,J16Mask |
||
182 | 197 0120 8130 cpi r24,lo8(1) |
||
183 | 198 0122 01F0 breq .L59 |
||
184 | 199 0124 8695 lsr r24 |
||
185 | 200 .L45: |
||
186 | 201 0126 8093 0000 sts J16Mask,r24 |
||
187 | 202 012a 8423 and r24,r20 |
||
188 | 203 012c 01F4 brne .+2 |
||
189 | 204 012e 00C0 rjmp .L22 |
||
190 | 205 0130 429A sbi 40-0x20,2 |
||
191 | 206 0132 00C0 rjmp .L10 |
||
192 | 207 .L58: |
||
193 | 208 0134 8091 0000 lds r24,Parameter_J17Timing |
||
194 | 209 0138 8150 subi r24,lo8(-(-1)) |
||
195 | 210 013a 8093 0000 sts J17Blinkcount,r24 |
||
196 | 211 013e 8091 0000 lds r24,J17Mask |
||
197 | 212 0142 8130 cpi r24,lo8(1) |
||
198 | 213 0144 01F0 breq .L60 |
||
199 | 214 0146 8695 lsr r24 |
||
200 | 215 .L47: |
||
201 | 216 0148 8093 0000 sts J17Mask,r24 |
||
202 | 217 014c 8623 and r24,r22 |
||
203 | 218 014e 01F4 brne .+2 |
||
204 | 219 0150 00C0 rjmp .L39 |
||
205 | 220 0152 439A sbi 40-0x20,3 |
||
206 | 221 0154 0895 ret |
||
207 | 222 .L59: |
||
208 | 223 0156 80E8 ldi r24,lo8(-128) |
||
209 | 224 0158 00C0 rjmp .L45 |
||
210 | 225 .L60: |
||
211 | 226 015a 80E8 ldi r24,lo8(-128) |
||
212 | 227 015c 00C0 rjmp .L47 |
||
213 | 228 /* epilogue: frame size=0 */ |
||
214 | 229 /* epilogue: noreturn */ |
||
215 | 230 /* epilogue end (size=0) */ |
||
216 | 231 /* function LED_Update size 162 (162) */ |
||
217 | 233 .comm Mixer,77,1 |
||
218 | 234 /* File "led.c": code 177 = 0x00b1 ( 176), prologues 0, epilogues 1 */ |
||
219 | DEFINED SYMBOLS |
||
220 | *ABS*:00000000 led.c |
||
221 | C:\Users\Bernd\AppData\Local\Temp/ccVwhCXf.s:3 *ABS*:0000003f __SREG__ |
||
222 | C:\Users\Bernd\AppData\Local\Temp/ccVwhCXf.s:4 *ABS*:0000003e __SP_H__ |
||
223 | C:\Users\Bernd\AppData\Local\Temp/ccVwhCXf.s:5 *ABS*:0000003d __SP_L__ |
||
224 | C:\Users\Bernd\AppData\Local\Temp/ccVwhCXf.s:6 *ABS*:00000000 __tmp_reg__ |
||
225 | C:\Users\Bernd\AppData\Local\Temp/ccVwhCXf.s:7 *ABS*:00000001 __zero_reg__ |
||
226 | C:\Users\Bernd\AppData\Local\Temp/ccVwhCXf.s:14 .data:00000000 J17Mask |
||
227 | C:\Users\Bernd\AppData\Local\Temp/ccVwhCXf.s:21 .bss:00000000 J17Blinkcount |
||
228 | C:\Users\Bernd\AppData\Local\Temp/ccVwhCXf.s:27 .data:00000001 J16Mask |
||
229 | C:\Users\Bernd\AppData\Local\Temp/ccVwhCXf.s:34 .bss:00000001 J16Blinkcount |
||
230 | C:\Users\Bernd\AppData\Local\Temp/ccVwhCXf.s:40 .bss:00000002 LED2_Timing |
||
231 | C:\Users\Bernd\AppData\Local\Temp/ccVwhCXf.s:46 .bss:00000004 LED1_Timing |
||
232 | C:\Users\Bernd\AppData\Local\Temp/ccVwhCXf.s:51 .text:00000000 LED_Init |
||
233 | .bss:00000006 delay.0 |
||
234 | C:\Users\Bernd\AppData\Local\Temp/ccVwhCXf.s:69 .bss:00000007 J16Bitmask.1 |
||
235 | C:\Users\Bernd\AppData\Local\Temp/ccVwhCXf.s:70 .bss:00000008 J17Bitmask.2 |
||
236 | C:\Users\Bernd\AppData\Local\Temp/ccVwhCXf.s:74 .text:0000001e LED_Update |
||
237 | *COM*:0000004d Mixer |
||
238 | |||
239 | UNDEFINED SYMBOLS |
||
240 | __do_copy_data |
||
241 | __do_clear_bss |
||
242 | MikroKopterFlags |
||
243 | EE_Parameter |
||
244 | MotorenEin |
||
245 | SenderOkay |
||
246 | Parameter_J16Timing |
||
247 | Parameter_J17Timing |