Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
99 | gunterl | 1 | 1 .file "timer0.c" |
2 | 2 .arch atmega644p |
||
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 .text |
||
11 | 11 .global __vector_18 |
||
12 | 13 __vector_18: |
||
13 | 14 /* prologue: frame size=0 */ |
||
14 | 15 0000 1F92 push __zero_reg__ |
||
15 | 16 0002 0F92 push __tmp_reg__ |
||
16 | 17 0004 0FB6 in __tmp_reg__,__SREG__ |
||
17 | 18 0006 0F92 push __tmp_reg__ |
||
18 | 19 0008 1124 clr __zero_reg__ |
||
19 | 20 000a 2F93 push r18 |
||
20 | 21 000c 3F93 push r19 |
||
21 | 22 000e 5F93 push r21 |
||
22 | 23 0010 6F93 push r22 |
||
23 | 24 0012 7F93 push r23 |
||
24 | 25 0014 8F93 push r24 |
||
25 | 26 0016 9F93 push r25 |
||
26 | 27 0018 AF93 push r26 |
||
27 | 28 001a BF93 push r27 |
||
28 | 29 /* prologue end (size=14) */ |
||
29 | 30 001c 8091 0000 lds r24,cnt.2042 |
||
30 | 31 0020 8150 subi r24,lo8(-(-1)) |
||
31 | 32 0022 8093 0000 sts cnt.2042,r24 |
||
32 | 33 0026 8F3F cpi r24,lo8(-1) |
||
33 | 34 0028 01F4 brne .L2 |
||
34 | 35 002a 89E0 ldi r24,lo8(9) |
||
35 | 36 002c 8093 0000 sts cnt.2042,r24 |
||
36 | 37 0030 8091 0000 lds r24,cnt_1ms.2041 |
||
37 | 38 0034 8F5F subi r24,lo8(-(1)) |
||
38 | 39 0036 8170 andi r24,lo8(1) |
||
39 | 40 0038 8093 0000 sts cnt_1ms.2041,r24 |
||
40 | 41 003c 8823 tst r24 |
||
41 | 42 003e 01F4 brne .L4 |
||
42 | 43 0040 81E0 ldi r24,lo8(1) |
||
43 | 44 0042 8093 0000 sts UpdateMotor,r24 |
||
44 | 45 .L4: |
||
45 | 46 0046 8091 0000 lds r24,CountMilliseconds |
||
46 | 47 004a 9091 0000 lds r25,(CountMilliseconds)+1 |
||
47 | 48 004e 0196 adiw r24,1 |
||
48 | 49 0050 9093 0000 sts (CountMilliseconds)+1,r25 |
||
49 | 50 0054 8093 0000 sts CountMilliseconds,r24 |
||
50 | 51 .L2: |
||
51 | 52 0058 8091 0000 lds r24,beeptime |
||
52 | 53 005c 9091 0000 lds r25,(beeptime)+1 |
||
53 | 54 0060 0297 sbiw r24,2 |
||
54 | 55 0062 00F0 brlo .L6 |
||
55 | 56 0064 8091 0000 lds r24,beeptime |
||
56 | 57 0068 9091 0000 lds r25,(beeptime)+1 |
||
57 | 58 006c 0197 sbiw r24,1 |
||
58 | 59 006e 9093 0000 sts (beeptime)+1,r25 |
||
59 | 60 0072 8093 0000 sts beeptime,r24 |
||
60 | 61 0076 8091 0000 lds r24,beeptime |
||
61 | 62 007a 9091 0000 lds r25,(beeptime)+1 |
||
62 | 63 007e 2091 0000 lds r18,BeepMuster |
||
63 | 64 0082 3091 0000 lds r19,(BeepMuster)+1 |
||
64 | 65 0086 8223 and r24,r18 |
||
65 | 66 0088 9323 and r25,r19 |
||
66 | 67 008a 892B or r24,r25 |
||
67 | 68 008c 01F0 breq .+2 |
||
68 | 69 008e 00C0 rjmp .L8 |
||
69 | 70 0090 00C0 rjmp .L9 |
||
70 | 71 .L6: |
||
71 | 72 0092 8FEF ldi r24,lo8(-1) |
||
72 | 73 0094 9FEF ldi r25,hi8(-1) |
||
73 | 74 0096 9093 0000 sts (BeepMuster)+1,r25 |
||
74 | 75 009a 8093 0000 sts BeepMuster,r24 |
||
75 | 76 .L9: |
||
76 | 77 009e 8091 0000 lds r24,PlatinenVersion |
||
77 | 78 00a2 8A30 cpi r24,lo8(10) |
||
78 | 79 00a4 01F4 brne .L23 |
||
79 | 80 00a6 00C0 rjmp .L10 |
||
80 | 81 .L12: |
||
81 | 82 00a8 5A9A sbi 43-0x20,2 |
||
82 | 83 00aa 00C0 rjmp .L13 |
||
83 | 84 .L24: |
||
84 | 85 00ac 479A sbi 40-0x20,7 |
||
85 | 86 00ae 00C0 rjmp .L13 |
||
86 | 87 .L10: |
||
87 | 88 00b0 5A98 cbi 43-0x20,2 |
||
88 | 89 00b2 00C0 rjmp .L13 |
||
89 | 90 .L23: |
||
90 | 91 00b4 4798 cbi 40-0x20,7 |
||
91 | 92 .L13: |
||
92 | 93 00b6 8091 0000 lds r24,EE_Parameter+8 |
||
93 | 94 00ba 83FF sbrs r24,3 |
||
94 | 95 00bc 00C0 rjmp .L22 |
||
95 | 96 00be 349B sbis 38-0x20,4 |
||
96 | 97 00c0 00C0 rjmp .L17 |
||
97 | 98 00c2 8091 0000 lds r24,cntKompass |
||
98 | 99 00c6 9091 0000 lds r25,(cntKompass)+1 |
||
99 | 100 00ca 0196 adiw r24,1 |
||
100 | 101 00cc 9093 0000 sts (cntKompass)+1,r25 |
||
101 | 102 00d0 8093 0000 sts cntKompass,r24 |
||
102 | 103 00d4 00C0 rjmp .L22 |
||
103 | 104 .L17: |
||
104 | 105 00d6 8091 0000 lds r24,cntKompass |
||
105 | 106 00da 9091 0000 lds r25,(cntKompass)+1 |
||
106 | 107 00de 892B or r24,r25 |
||
107 | 108 00e0 01F0 breq .L19 |
||
108 | 109 00e2 8091 0000 lds r24,cntKompass |
||
109 | 110 00e6 9091 0000 lds r25,(cntKompass)+1 |
||
110 | 111 00ea 805A subi r24,lo8(4000) |
||
111 | 112 00ec 9F40 sbci r25,hi8(4000) |
||
112 | 113 00ee 00F4 brsh .L19 |
||
113 | 114 00f0 8091 0000 lds r24,cntKompass |
||
114 | 115 00f4 9091 0000 lds r25,(cntKompass)+1 |
||
115 | 116 00f8 9093 0000 sts (KompassValue)+1,r25 |
||
116 | 117 00fc 8093 0000 sts KompassValue,r24 |
||
117 | 118 .L19: |
||
118 | 119 0100 8091 0000 lds r24,KompassValue |
||
119 | 120 0104 9091 0000 lds r25,(KompassValue)+1 |
||
120 | 121 0108 2091 0000 lds r18,KompassStartwert |
||
121 | 122 010c 3091 0000 lds r19,(KompassStartwert)+1 |
||
122 | 123 0110 821B sub r24,r18 |
||
123 | 124 0112 930B sbc r25,r19 |
||
124 | 125 0114 845E subi r24,lo8(-(540)) |
||
125 | 126 0116 9D4F sbci r25,hi8(-(540)) |
||
126 | 127 0118 68E6 ldi r22,lo8(360) |
||
127 | 128 011a 71E0 ldi r23,hi8(360) |
||
128 | 129 011c 0E94 0000 call __divmodhi4 |
||
129 | 130 0120 845B subi r24,lo8(-(-180)) |
||
130 | 131 0122 9040 sbci r25,hi8(-(-180)) |
||
131 | 132 0124 9093 0000 sts (KompassRichtung)+1,r25 |
||
132 | 133 0128 8093 0000 sts KompassRichtung,r24 |
||
133 | 134 012c 1092 0000 sts (cntKompass)+1,__zero_reg__ |
||
134 | 135 0130 1092 0000 sts cntKompass,__zero_reg__ |
||
135 | 136 0134 00C0 rjmp .L22 |
||
136 | 137 .L8: |
||
137 | 138 0136 8091 0000 lds r24,PlatinenVersion |
||
138 | 139 013a 8A30 cpi r24,lo8(10) |
||
139 | 140 013c 01F0 breq .+2 |
||
140 | 141 013e 00C0 rjmp .L24 |
||
141 | 142 0140 00C0 rjmp .L12 |
||
142 | 143 .L22: |
||
143 | 144 /* epilogue: frame size=0 */ |
||
144 | 145 0142 BF91 pop r27 |
||
145 | 146 0144 AF91 pop r26 |
||
146 | 147 0146 9F91 pop r25 |
||
147 | 148 0148 8F91 pop r24 |
||
148 | 149 014a 7F91 pop r23 |
||
149 | 150 014c 6F91 pop r22 |
||
150 | 151 014e 5F91 pop r21 |
||
151 | 152 0150 3F91 pop r19 |
||
152 | 153 0152 2F91 pop r18 |
||
153 | 154 0154 0F90 pop __tmp_reg__ |
||
154 | 155 0156 0FBE out __SREG__,__tmp_reg__ |
||
155 | 156 0158 0F90 pop __tmp_reg__ |
||
156 | 157 015a 1F90 pop __zero_reg__ |
||
157 | 158 015c 1895 reti |
||
158 | 159 /* epilogue end (size=14) */ |
||
159 | 160 /* function __vector_18 size 177 (149) */ |
||
160 | 162 .global SetDelay |
||
161 | 164 SetDelay: |
||
162 | 165 /* prologue: frame size=0 */ |
||
163 | 166 /* prologue end (size=0) */ |
||
164 | 167 015e 2091 0000 lds r18,CountMilliseconds |
||
165 | 168 0162 3091 0000 lds r19,(CountMilliseconds)+1 |
||
166 | 169 0166 2F5F subi r18,lo8(-(1)) |
||
167 | 170 0168 3F4F sbci r19,hi8(-(1)) |
||
168 | 171 016a 820F add r24,r18 |
||
169 | 172 016c 931F adc r25,r19 |
||
170 | 173 /* epilogue: frame size=0 */ |
||
171 | 174 016e 0895 ret |
||
172 | 175 /* epilogue end (size=1) */ |
||
173 | 176 /* function SetDelay size 9 (8) */ |
||
174 | 178 .global CheckDelay |
||
175 | 180 CheckDelay: |
||
176 | 181 /* prologue: frame size=0 */ |
||
177 | 182 /* prologue end (size=0) */ |
||
178 | 183 0170 2091 0000 lds r18,CountMilliseconds |
||
179 | 184 0174 3091 0000 lds r19,(CountMilliseconds)+1 |
||
180 | 185 0178 821B sub r24,r18 |
||
181 | 186 017a 930B sbc r25,r19 |
||
182 | 187 017c 892F mov r24,r25 |
||
183 | 188 017e 9927 clr r25 |
||
184 | 189 0180 8695 lsr r24 |
||
185 | 190 0182 8074 andi r24,lo8(64) |
||
186 | 191 0184 9927 clr r25 |
||
187 | 192 /* epilogue: frame size=0 */ |
||
188 | 193 0186 0895 ret |
||
189 | 194 /* epilogue end (size=1) */ |
||
190 | 195 /* function CheckDelay size 12 (11) */ |
||
191 | 197 .global __vector_9 |
||
192 | 199 __vector_9: |
||
193 | 200 /* prologue: frame size=0 */ |
||
194 | 201 0188 1F92 push __zero_reg__ |
||
195 | 202 018a 0F92 push __tmp_reg__ |
||
196 | 203 018c 0FB6 in __tmp_reg__,__SREG__ |
||
197 | 204 018e 0F92 push __tmp_reg__ |
||
198 | 205 0190 1124 clr __zero_reg__ |
||
199 | 206 0192 EF92 push r14 |
||
200 | 207 0194 FF92 push r15 |
||
201 | 208 0196 0F93 push r16 |
||
202 | 209 0198 1F93 push r17 |
||
203 | 210 019a 2F93 push r18 |
||
204 | 211 019c 3F93 push r19 |
||
205 | 212 019e 4F93 push r20 |
||
206 | 213 01a0 5F93 push r21 |
||
207 | 214 01a2 6F93 push r22 |
||
208 | 215 01a4 7F93 push r23 |
||
209 | 216 01a6 8F93 push r24 |
||
210 | 217 01a8 9F93 push r25 |
||
211 | 218 01aa AF93 push r26 |
||
212 | 219 01ac BF93 push r27 |
||
213 | 220 01ae CF93 push r28 |
||
214 | 221 01b0 DF93 push r29 |
||
215 | 222 01b2 EF93 push r30 |
||
216 | 223 01b4 FF93 push r31 |
||
217 | 224 /* prologue end (size=23) */ |
||
218 | 225 01b6 8091 0000 lds r24,timer.2145 |
||
219 | 226 01ba 8150 subi r24,lo8(-(-1)) |
||
220 | 227 01bc 8093 0000 sts timer.2145,r24 |
||
221 | 228 01c0 8F3F cpi r24,lo8(-1) |
||
222 | 229 01c2 01F0 breq .+2 |
||
223 | 230 01c4 00C0 rjmp .L30 |
||
224 | 231 01c6 83E8 ldi r24,lo8(-125) |
||
225 | 232 01c8 8093 B000 sts 176,r24 |
||
226 | 233 01cc 8091 0000 lds r24,Parameter_ServoNickControl |
||
227 | 234 01d0 C82F mov r28,r24 |
||
228 | 235 01d2 DD27 clr r29 |
||
229 | 236 01d4 D093 0000 sts (ServoValue)+1,r29 |
||
230 | 237 01d8 C093 0000 sts ServoValue,r28 |
||
231 | 238 01dc 8091 0000 lds r24,EE_Parameter+53 |
||
232 | 239 01e0 E090 0000 lds r14,EE_Parameter+34 |
||
233 | 240 01e4 80FF sbrs r24,0 |
||
234 | 241 01e6 00C0 rjmp .L32 |
||
235 | 242 01e8 6091 0000 lds r22,IntegralNick |
||
236 | 243 01ec 7091 0000 lds r23,(IntegralNick)+1 |
||
237 | 244 01f0 8091 0000 lds r24,(IntegralNick)+2 |
||
238 | 245 01f4 9091 0000 lds r25,(IntegralNick)+3 |
||
239 | 246 01f8 FF24 clr r15 |
||
240 | 247 01fa 0027 clr r16 |
||
241 | 248 01fc 1127 clr r17 |
||
242 | 249 01fe 20E8 ldi r18,lo8(128) |
||
243 | 250 0200 30E0 ldi r19,hi8(128) |
||
244 | 251 0202 40E0 ldi r20,hlo8(128) |
||
245 | 252 0204 50E0 ldi r21,hhi8(128) |
||
246 | 253 0206 0E94 0000 call __divmodsi4 |
||
247 | 254 020a C801 movw r24,r16 |
||
248 | 255 020c B701 movw r22,r14 |
||
249 | 256 020e 0E94 0000 call __mulsi3 |
||
250 | 257 0212 20E0 ldi r18,lo8(512) |
||
251 | 258 0214 32E0 ldi r19,hi8(512) |
||
252 | 259 0216 40E0 ldi r20,hlo8(512) |
||
253 | 260 0218 50E0 ldi r21,hhi8(512) |
||
254 | 261 021a 0E94 0000 call __divmodsi4 |
||
255 | 262 021e C20F add r28,r18 |
||
256 | 263 0220 D31F adc r29,r19 |
||
257 | 264 0222 00C0 rjmp .L41 |
||
258 | 265 .L32: |
||
259 | 266 0224 6091 0000 lds r22,IntegralNick |
||
260 | 267 0228 7091 0000 lds r23,(IntegralNick)+1 |
||
261 | 268 022c 8091 0000 lds r24,(IntegralNick)+2 |
||
262 | 269 0230 9091 0000 lds r25,(IntegralNick)+3 |
||
263 | 270 0234 FF24 clr r15 |
||
264 | 271 0236 0027 clr r16 |
||
265 | 272 0238 1127 clr r17 |
||
266 | 273 023a 20E8 ldi r18,lo8(128) |
||
267 | 274 023c 30E0 ldi r19,hi8(128) |
||
268 | 275 023e 40E0 ldi r20,hlo8(128) |
||
269 | 276 0240 50E0 ldi r21,hhi8(128) |
||
270 | 277 0242 0E94 0000 call __divmodsi4 |
||
271 | 278 0246 C801 movw r24,r16 |
||
272 | 279 0248 B701 movw r22,r14 |
||
273 | 280 024a 0E94 0000 call __mulsi3 |
||
274 | 281 024e 20E0 ldi r18,lo8(512) |
||
275 | 282 0250 32E0 ldi r19,hi8(512) |
||
276 | 283 0252 40E0 ldi r20,hlo8(512) |
||
277 | 284 0254 50E0 ldi r21,hhi8(512) |
||
278 | 285 0256 0E94 0000 call __divmodsi4 |
||
279 | 286 025a C21B sub r28,r18 |
||
280 | 287 025c D30B sbc r29,r19 |
||
281 | 288 .L41: |
||
282 | 289 025e D093 0000 sts (ServoValue)+1,r29 |
||
283 | 290 0262 C093 0000 sts ServoValue,r28 |
||
284 | 291 0266 2091 0000 lds r18,ServoValue |
||
285 | 292 026a 3091 0000 lds r19,(ServoValue)+1 |
||
286 | 293 026e 8091 0000 lds r24,EE_Parameter+35 |
||
287 | 294 0272 9927 clr r25 |
||
288 | 295 0274 2817 cp r18,r24 |
||
289 | 296 0276 3907 cpc r19,r25 |
||
290 | 297 0278 04F0 brlt .L42 |
||
291 | 298 027a 8091 0000 lds r24,EE_Parameter+36 |
||
292 | 299 027e 9927 clr r25 |
||
293 | 300 0280 8217 cp r24,r18 |
||
294 | 301 0282 9307 cpc r25,r19 |
||
295 | 302 0284 04F4 brge .L37 |
||
296 | 303 .L42: |
||
297 | 304 0286 9093 0000 sts (ServoValue)+1,r25 |
||
298 | 305 028a 8093 0000 sts ServoValue,r24 |
||
299 | 306 .L37: |
||
300 | 307 028e 8091 0000 lds r24,ServoValue |
||
301 | 308 0292 8093 B300 sts 179,r24 |
||
302 | 309 0296 8091 0000 lds r24,EE_Parameter+37 |
||
303 | 310 029a 8093 0000 sts timer.2145,r24 |
||
304 | 311 029e 00C0 rjmp .L40 |
||
305 | 312 .L30: |
||
306 | 313 02a0 83E0 ldi r24,lo8(3) |
||
307 | 314 02a2 8093 B000 sts 176,r24 |
||
308 | 315 02a6 5F98 cbi 43-0x20,7 |
||
309 | 316 .L40: |
||
310 | 317 /* epilogue: frame size=0 */ |
||
311 | 318 02a8 FF91 pop r31 |
||
312 | 319 02aa EF91 pop r30 |
||
313 | 320 02ac DF91 pop r29 |
||
314 | 321 02ae CF91 pop r28 |
||
315 | 322 02b0 BF91 pop r27 |
||
316 | 323 02b2 AF91 pop r26 |
||
317 | 324 02b4 9F91 pop r25 |
||
318 | 325 02b6 8F91 pop r24 |
||
319 | 326 02b8 7F91 pop r23 |
||
320 | 327 02ba 6F91 pop r22 |
||
321 | 328 02bc 5F91 pop r21 |
||
322 | 329 02be 4F91 pop r20 |
||
323 | 330 02c0 3F91 pop r19 |
||
324 | 331 02c2 2F91 pop r18 |
||
325 | 332 02c4 1F91 pop r17 |
||
326 | 333 02c6 0F91 pop r16 |
||
327 | 334 02c8 FF90 pop r15 |
||
328 | 335 02ca EF90 pop r14 |
||
329 | 336 02cc 0F90 pop __tmp_reg__ |
||
330 | 337 02ce 0FBE out __SREG__,__tmp_reg__ |
||
331 | 338 02d0 0F90 pop __tmp_reg__ |
||
332 | 339 02d2 1F90 pop __zero_reg__ |
||
333 | 340 02d4 1895 reti |
||
334 | 341 /* epilogue end (size=23) */ |
||
335 | 342 /* function __vector_9 size 167 (121) */ |
||
336 | 344 .global Timer_Init |
||
337 | 346 Timer_Init: |
||
338 | 347 /* prologue: frame size=0 */ |
||
339 | 348 /* prologue end (size=0) */ |
||
340 | 349 02d6 8091 0000 lds r24,CountMilliseconds |
||
341 | 350 02da 9091 0000 lds r25,(CountMilliseconds)+1 |
||
342 | 351 02de 0B96 adiw r24,11 |
||
343 | 352 02e0 9093 0000 sts (tim_main)+1,r25 |
||
344 | 353 02e4 8093 0000 sts tim_main,r24 |
||
345 | 354 02e8 82E0 ldi r24,lo8(2) |
||
346 | 355 02ea 85BD out 69-0x20,r24 |
||
347 | 356 02ec 83EA ldi r24,lo8(-93) |
||
348 | 357 02ee 84BD out 68-0x20,r24 |
||
349 | 358 02f0 17BC out 71-0x20,__zero_reg__ |
||
350 | 359 02f2 88E7 ldi r24,lo8(120) |
||
351 | 360 02f4 88BD out 72-0x20,r24 |
||
352 | 361 02f6 96E0 ldi r25,lo8(6) |
||
353 | 362 02f8 96BD out 70-0x20,r25 |
||
354 | 363 02fa 83EC ldi r24,lo8(-61) |
||
355 | 364 02fc 8093 B000 sts 176,r24 |
||
356 | 365 0300 9093 B100 sts 177,r25 |
||
357 | 366 0304 E0E7 ldi r30,lo8(112) |
||
358 | 367 0306 F0E0 ldi r31,hi8(112) |
||
359 | 368 0308 8081 ld r24,Z |
||
360 | 369 030a 8260 ori r24,lo8(2) |
||
361 | 370 030c 8083 st Z,r24 |
||
362 | 371 030e EEE6 ldi r30,lo8(110) |
||
363 | 372 0310 F0E0 ldi r31,hi8(110) |
||
364 | 373 0312 8081 ld r24,Z |
||
365 | 374 0314 8160 ori r24,lo8(1) |
||
366 | 375 0316 8083 st Z,r24 |
||
367 | 376 0318 8AE0 ldi r24,lo8(10) |
||
368 | 377 031a 8093 B300 sts 179,r24 |
||
369 | 378 031e 1092 B200 sts 178,__zero_reg__ |
||
370 | 379 /* epilogue: frame size=0 */ |
||
371 | 380 0322 0895 ret |
||
372 | 381 /* epilogue end (size=1) */ |
||
373 | 382 /* function Timer_Init size 39 (38) */ |
||
374 | 384 .global Delay_ms_Mess |
||
375 | 386 Delay_ms_Mess: |
||
376 | 387 /* prologue: frame size=0 */ |
||
377 | 388 /* prologue end (size=0) */ |
||
378 | 389 0324 2091 0000 lds r18,CountMilliseconds |
||
379 | 390 0328 3091 0000 lds r19,(CountMilliseconds)+1 |
||
380 | 391 032c 2F5F subi r18,lo8(-(1)) |
||
381 | 392 032e 3F4F sbci r19,hi8(-(1)) |
||
382 | 393 0330 280F add r18,r24 |
||
383 | 394 0332 391F adc r19,r25 |
||
384 | 395 0334 4FEE ldi r20,lo8(-17) |
||
385 | 396 0336 00C0 rjmp .L46 |
||
386 | 397 .L47: |
||
387 | 398 0338 4093 7A00 sts 122,r20 |
||
388 | 399 .L46: |
||
389 | 400 033c 8091 0000 lds r24,CountMilliseconds |
||
390 | 401 0340 9091 0000 lds r25,(CountMilliseconds)+1 |
||
391 | 402 0344 B901 movw r22,r18 |
||
392 | 403 0346 681B sub r22,r24 |
||
393 | 404 0348 790B sbc r23,r25 |
||
394 | 405 034a 77FF sbrs r23,7 |
||
395 | 406 034c 00C0 rjmp .L47 |
||
396 | 407 /* epilogue: frame size=0 */ |
||
397 | 408 034e 0895 ret |
||
398 | 409 /* epilogue end (size=1) */ |
||
399 | 410 /* function Delay_ms_Mess size 22 (21) */ |
||
400 | 412 .global Delay_ms |
||
401 | 414 Delay_ms: |
||
402 | 415 /* prologue: frame size=0 */ |
||
403 | 416 /* prologue end (size=0) */ |
||
404 | 417 0350 2091 0000 lds r18,CountMilliseconds |
||
405 | 418 0354 3091 0000 lds r19,(CountMilliseconds)+1 |
||
406 | 419 0358 2F5F subi r18,lo8(-(1)) |
||
407 | 420 035a 3F4F sbci r19,hi8(-(1)) |
||
408 | 421 035c 280F add r18,r24 |
||
409 | 422 035e 391F adc r19,r25 |
||
410 | 423 .L51: |
||
411 | 424 0360 8091 0000 lds r24,CountMilliseconds |
||
412 | 425 0364 9091 0000 lds r25,(CountMilliseconds)+1 |
||
413 | 426 0368 A901 movw r20,r18 |
||
414 | 427 036a 481B sub r20,r24 |
||
415 | 428 036c 590B sbc r21,r25 |
||
416 | 429 036e 57FF sbrs r21,7 |
||
417 | 430 0370 00C0 rjmp .L51 |
||
418 | 431 /* epilogue: frame size=0 */ |
||
419 | 432 0372 0895 ret |
||
420 | 433 /* epilogue end (size=1) */ |
||
421 | 434 /* function Delay_ms size 18 (17) */ |
||
422 | 436 .global CountMilliseconds |
||
423 | 437 .global CountMilliseconds |
||
424 | 438 .section .bss |
||
425 | 441 CountMilliseconds: |
||
426 | 442 0000 0000 .skip 2,0 |
||
427 | 443 .global UpdateMotor |
||
428 | 444 .global UpdateMotor |
||
429 | 447 UpdateMotor: |
||
430 | 448 0002 00 .skip 1,0 |
||
431 | 449 .global cntKompass |
||
432 | 450 .global cntKompass |
||
433 | 453 cntKompass: |
||
434 | 454 0003 0000 .skip 2,0 |
||
435 | 455 .global beeptime |
||
436 | 456 .global beeptime |
||
437 | 459 beeptime: |
||
438 | 460 0005 0000 .skip 2,0 |
||
439 | 461 .global BeepMuster |
||
440 | 462 .data |
||
441 | 465 BeepMuster: |
||
442 | 466 0000 FFFF .word -1 |
||
443 | 467 .global ServoValue |
||
444 | 468 .global ServoValue |
||
445 | 469 .section .bss |
||
446 | 472 ServoValue: |
||
447 | 473 0007 0000 .skip 2,0 |
||
448 | 474 .data |
||
449 | 477 timer.2145: |
||
450 | 478 0002 0A .byte 10 |
||
451 | 479 .lcomm cnt.2042,1 |
||
452 | 482 cnt_1ms.2041: |
||
453 | 483 0003 01 .byte 1 |
||
454 | 484 .lcomm tim_main,2 |
||
455 | 485 /* File "timer0.c": code 444 = 0x01bc ( 365), prologues 37, epilogues 42 */ |
||
456 | DEFINED SYMBOLS |
||
457 | *ABS*:00000000 timer0.c |
||
458 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:3 *ABS*:0000003f __SREG__ |
||
459 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:4 *ABS*:0000003e __SP_H__ |
||
460 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:5 *ABS*:0000003d __SP_L__ |
||
461 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:6 *ABS*:00000000 __tmp_reg__ |
||
462 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:7 *ABS*:00000001 __zero_reg__ |
||
463 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:13 .text:00000000 __vector_18 |
||
464 | .bss:00000009 cnt.2042 |
||
465 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:482 .data:00000003 cnt_1ms.2041 |
||
466 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:447 .bss:00000002 UpdateMotor |
||
467 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:441 .bss:00000000 CountMilliseconds |
||
468 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:459 .bss:00000005 beeptime |
||
469 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:465 .data:00000000 BeepMuster |
||
470 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:453 .bss:00000003 cntKompass |
||
471 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:164 .text:0000015e SetDelay |
||
472 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:180 .text:00000170 CheckDelay |
||
473 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:199 .text:00000188 __vector_9 |
||
474 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:477 .data:00000002 timer.2145 |
||
475 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:472 .bss:00000007 ServoValue |
||
476 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:346 .text:000002d6 Timer_Init |
||
477 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:479 .bss:0000000a tim_main |
||
478 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:386 .text:00000324 Delay_ms_Mess |
||
479 | C:\Users\gunterl\AppData\Local\Temp/cc5S9deL.s:414 .text:00000350 Delay_ms |
||
480 | |||
481 | UNDEFINED SYMBOLS |
||
482 | __do_copy_data |
||
483 | __do_clear_bss |
||
484 | PlatinenVersion |
||
485 | EE_Parameter |
||
486 | KompassValue |
||
487 | KompassStartwert |
||
488 | __divmodhi4 |
||
489 | KompassRichtung |
||
490 | Parameter_ServoNickControl |
||
491 | IntegralNick |
||
492 | __divmodsi4 |
||
493 | __mulsi3 |